public class QuorumBean extends Object implements QuorumMXBean, ZKMBeanInfo
Constructor and Description |
---|
QuorumBean(QuorumPeer peer) |
Modifier and Type | Method and Description |
---|---|
void |
disableDigest() |
boolean |
getDigestEnabled() |
int |
getInitLimit() |
String |
getName() |
long |
getObserverElectionDelayMS() |
int |
getQuorumSize() |
int |
getSyncLimit() |
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 |
isPortUnification() |
boolean |
isSslQuorum() |
void |
setInitLimit(int initLimit) |
void |
setObserverElectionDelayMS(long delayMS)
Set the Observer Leader Election Reconnect Delay time in MS
|
void |
setSyncLimit(int syncLimit) |
public QuorumBean(QuorumPeer peer)
public String getName()
getName
in interface ZKMBeanInfo
getName
in interface QuorumMXBean
public boolean isHidden()
ZKMBeanInfo
isHidden
in interface ZKMBeanInfo
public int getQuorumSize()
getQuorumSize
in interface QuorumMXBean
public int getSyncLimit()
getSyncLimit
in interface QuorumMXBean
public int getInitLimit()
getInitLimit
in interface QuorumMXBean
public void setInitLimit(int initLimit)
setInitLimit
in interface QuorumMXBean
initLimit
- the number of ticks that the initial synchronization phase can takepublic void setSyncLimit(int syncLimit)
setSyncLimit
in interface QuorumMXBean
syncLimit
- the number of ticks that can pass between sending a request and getting an acknowledgmentpublic boolean isSslQuorum()
isSslQuorum
in interface QuorumMXBean
public boolean isPortUnification()
isPortUnification
in interface QuorumMXBean
public long getObserverElectionDelayMS()
getObserverElectionDelayMS
in interface QuorumMXBean
public void setObserverElectionDelayMS(long delayMS)
QuorumMXBean
setObserverElectionDelayMS
in interface QuorumMXBean
public boolean getDigestEnabled()
getDigestEnabled
in interface QuorumMXBean
public void disableDigest()
disableDigest
in interface QuorumMXBean
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.