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, tools, and much more.