Master component hides its status, How to have a better view of its Status ?
Issue
- Fuse doesn't provide a way to check if a route using
Mastercomponent is master or standby. - User monitoring uses a custom route policy to check the state of a route and user need to know if the route is supposed to run (master) or not (standby).
- User would like to do something like this
Consumer consumer = route.getConsumer();
if (consumer instanceof MasterConsumer) {
MasterConsumer master = (MasterConsumer)consumer;
if (master.isMaster()) {
// do stuff
}
}
- MasterComponent might need this method for that
public boolean isMaster() {
return singleton.isMaster();
}
- Master component state should also be shown in hawtio.
Environment
- Red Hat JBoss Fuse
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
