Master component hides its status, How to have a better view of its Status ?

Solution Verified - Updated -

Issue

  • Fuse doesn't provide a way to check if a route using Master component 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content