Class QuorumBean
java.lang.Object
org.apache.zookeeper.server.quorum.QuorumBean
- All Implemented Interfaces:
ZKMBeanInfo
,QuorumMXBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
int
getName()
long
int
int
boolean
isHidden()
If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools.boolean
boolean
void
setInitLimit
(int initLimit) void
setObserverElectionDelayMS
(long delayMS) Set the Observer Leader Election Reconnect Delay time in MSvoid
setSyncLimit
(int syncLimit)
-
Constructor Details
-
QuorumBean
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceQuorumMXBean
- Specified by:
getName
in interfaceZKMBeanInfo
- 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 interfaceZKMBeanInfo
- Returns:
- true if the MBean is hidden.
-
getQuorumSize
public int getQuorumSize()- Specified by:
getQuorumSize
in interfaceQuorumMXBean
- Returns:
- configured number of peers in the quorum
-
getSyncLimit
public int getSyncLimit()- Specified by:
getSyncLimit
in interfaceQuorumMXBean
- Returns:
- the number of ticks that can pass between sending a request and getting an acknowledgment
-
getInitLimit
public int getInitLimit()- Specified by:
getInitLimit
in interfaceQuorumMXBean
- Returns:
- the number of ticks that the initial synchronization phase can take
-
setInitLimit
public void setInitLimit(int initLimit) - Specified by:
setInitLimit
in interfaceQuorumMXBean
- Parameters:
initLimit
- the number of ticks that the initial synchronization phase can take
-
setSyncLimit
public void setSyncLimit(int syncLimit) - Specified by:
setSyncLimit
in interfaceQuorumMXBean
- Parameters:
syncLimit
- the number of ticks that can pass between sending a request and getting an acknowledgment
-
isSslQuorum
public boolean isSslQuorum()- Specified by:
isSslQuorum
in interfaceQuorumMXBean
- Returns:
- SSL communication between quorum members required
-
isPortUnification
public boolean isPortUnification()- Specified by:
isPortUnification
in interfaceQuorumMXBean
- Returns:
- SSL communication between quorum members enabled
-
getObserverElectionDelayMS
public long getObserverElectionDelayMS()- Specified by:
getObserverElectionDelayMS
in interfaceQuorumMXBean
- Returns:
- Observer Leader Election Reconnect Delay time in MS
-
setObserverElectionDelayMS
public void setObserverElectionDelayMS(long delayMS) Description copied from interface:QuorumMXBean
Set the Observer Leader Election Reconnect Delay time in MS- Specified by:
setObserverElectionDelayMS
in interfaceQuorumMXBean
-
getDigestEnabled
public boolean getDigestEnabled()- Specified by:
getDigestEnabled
in interfaceQuorumMXBean
-
disableDigest
public void disableDigest()- Specified by:
disableDigest
in interfaceQuorumMXBean
-