Class NodeInfo

java.lang.Object
org.acemq.rabbitmq.admin.NodeInfo

public final class NodeInfo extends Object
One node of the cluster.

Deliberately thin. This endpoint's contents vary a great deal with the broker's configuration — most of the resource statistics are absent unless the management agent is collecting them — so modelling the numbers here would produce a class whose fields are null on a broker that is working perfectly well. The resource numbers come from the metrics endpoint, which always has them.

  • Constructor Details

  • Method Details

    • name

      public String name()
      Returns:
      the Erlang node name, for example rabbit@host1
    • type

      public String type()
      Returns:
      disc or ram
    • running

      public boolean running()
    • beingDrained

      public boolean beingDrained()
      Returns:
      whether the node is in maintenance mode. A node being drained is running and deliberately not taking work, so treating it as unhealthy would page somebody for a planned operation
    • toString

      public String toString()
      Overrides:
      toString in class Object