org.apache.zookeeper.server.quorum
Class QuorumBean

java.lang.Object
  extended by org.apache.zookeeper.server.quorum.QuorumBean
All Implemented Interfaces:
ZKMBeanInfo, QuorumMXBean

public class QuorumBean
extends Object
implements QuorumMXBean, ZKMBeanInfo


Constructor Summary
QuorumBean(QuorumPeer peer)
           
 
Method Summary
 String getName()
           
 int getQuorumSize()
           
 boolean isHidden()
          If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuorumBean

public QuorumBean(QuorumPeer peer)
Method Detail

getName

public String getName()
Specified by:
getName in interface ZKMBeanInfo
Specified by:
getName in interface QuorumMXBean
Returns:
the name of the quorum

isHidden

public boolean isHidden()
Description copied from interface: ZKMBeanInfo
If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools. Used for grouping MBeans.

Specified by:
isHidden in interface ZKMBeanInfo
Returns:
true if the MBean is hidden.

getQuorumSize

public int getQuorumSize()
Specified by:
getQuorumSize in interface QuorumMXBean
Returns:
configured number of peers in the quorum


Copyright © 2011 The Apache Software Foundation