Class QuorumBean
- java.lang.Object
 - 
- org.apache.zookeeper.server.quorum.QuorumBean
 
 
- 
- All Implemented Interfaces:
 ZKMBeanInfo,QuorumMXBean
public class QuorumBean extends Object implements QuorumMXBean, ZKMBeanInfo
 
- 
- 
Constructor Summary
Constructors Constructor Description QuorumBean(QuorumPeer peer) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableDigest()booleangetDigestEnabled()intgetInitLimit()StringgetName()longgetObserverElectionDelayMS()intgetQuorumSize()intgetSyncLimit()booleanisHidden()If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools.booleanisPortUnification()booleanisSslQuorum()voidsetInitLimit(int initLimit)voidsetObserverElectionDelayMS(long delayMS)Set the Observer Leader Election Reconnect Delay time in MSvoidsetSyncLimit(int syncLimit) 
 - 
 
- 
- 
Constructor Detail
- 
QuorumBean
public QuorumBean(QuorumPeer peer)
 
 - 
 
- 
Method Detail
- 
getName
public String getName()
- Specified by:
 getNamein interfaceQuorumMXBean- Specified by:
 getNamein interfaceZKMBeanInfo- Returns:
 - the name of the quorum
 
 
- 
isHidden
public boolean isHidden()
Description copied from interface:ZKMBeanInfoIf 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:
 isHiddenin interfaceZKMBeanInfo- Returns:
 - true if the MBean is hidden.
 
 
- 
getQuorumSize
public int getQuorumSize()
- Specified by:
 getQuorumSizein interfaceQuorumMXBean- Returns:
 - configured number of peers in the quorum
 
 
- 
getSyncLimit
public int getSyncLimit()
- Specified by:
 getSyncLimitin interfaceQuorumMXBean- Returns:
 - the number of ticks that can pass between sending a request and getting an acknowledgment
 
 
- 
getInitLimit
public int getInitLimit()
- Specified by:
 getInitLimitin interfaceQuorumMXBean- Returns:
 - the number of ticks that the initial synchronization phase can take
 
 
- 
setInitLimit
public void setInitLimit(int initLimit)
- Specified by:
 setInitLimitin interfaceQuorumMXBean- Parameters:
 initLimit- the number of ticks that the initial synchronization phase can take
 
- 
setSyncLimit
public void setSyncLimit(int syncLimit)
- Specified by:
 setSyncLimitin interfaceQuorumMXBean- Parameters:
 syncLimit- the number of ticks that can pass between sending a request and getting an acknowledgment
 
- 
isSslQuorum
public boolean isSslQuorum()
- Specified by:
 isSslQuorumin interfaceQuorumMXBean- Returns:
 - SSL communication between quorum members required
 
 
- 
isPortUnification
public boolean isPortUnification()
- Specified by:
 isPortUnificationin interfaceQuorumMXBean- Returns:
 - SSL communication between quorum members enabled
 
 
- 
getObserverElectionDelayMS
public long getObserverElectionDelayMS()
- Specified by:
 getObserverElectionDelayMSin interfaceQuorumMXBean- Returns:
 - Observer Leader Election Reconnect Delay time in MS
 
 
- 
setObserverElectionDelayMS
public void setObserverElectionDelayMS(long delayMS)
Description copied from interface:QuorumMXBeanSet the Observer Leader Election Reconnect Delay time in MS- Specified by:
 setObserverElectionDelayMSin interfaceQuorumMXBean
 
- 
getDigestEnabled
public boolean getDigestEnabled()
- Specified by:
 getDigestEnabledin interfaceQuorumMXBean
 
- 
disableDigest
public void disableDigest()
- Specified by:
 disableDigestin interfaceQuorumMXBean
 
 - 
 
 -