public class LocalPeerBean extends ServerBean implements LocalPeerMXBean
Constructor and Description |
---|
LocalPeerBean(QuorumPeer peer) |
Modifier and Type | Method and Description |
---|---|
String |
getClientAddress() |
long |
getConfigVersion() |
String |
getElectionAddress() |
int |
getElectionType() |
int |
getInitLimit() |
String |
getLearnerType() |
int |
getMaxClientCnxnsPerHost()
Current maxClientCnxns allowed from a particular host
|
int |
getMaxCnxns() |
int |
getMaxSessionTimeout() |
int |
getMinSessionTimeout() |
String |
getName() |
String |
getQuorumAddress() |
String |
getQuorumSystemInfo() |
String |
getState() |
int |
getSyncLimit() |
int |
getTick() |
int |
getTickTime() |
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 |
isLeader() |
boolean |
isPartOfEnsemble() |
void |
setInitLimit(int initLimit)
Set the number of ticks that the initial sync phase can take
|
void |
setSyncLimit(int syncLimit)
Set the number of ticks that can pass between sending a request
and getting a acknowledgment
|
getStartTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStartTime
public LocalPeerBean(QuorumPeer peer)
public String getName()
getName
in interface ZKMBeanInfo
getName
in interface ServerMXBean
public boolean isHidden()
ZKMBeanInfo
isHidden
in interface ZKMBeanInfo
isHidden
in class ServerBean
public int getTickTime()
getTickTime
in interface LocalPeerMXBean
public int getMaxClientCnxnsPerHost()
LocalPeerMXBean
getMaxClientCnxnsPerHost
in interface LocalPeerMXBean
public int getMinSessionTimeout()
getMinSessionTimeout
in interface LocalPeerMXBean
public int getMaxSessionTimeout()
getMaxSessionTimeout
in interface LocalPeerMXBean
public int getInitLimit()
getInitLimit
in interface LocalPeerMXBean
public int getSyncLimit()
getSyncLimit
in interface LocalPeerMXBean
public void setInitLimit(int initLimit)
LocalPeerMXBean
setInitLimit
in interface LocalPeerMXBean
public void setSyncLimit(int syncLimit)
LocalPeerMXBean
setSyncLimit
in interface LocalPeerMXBean
public int getTick()
getTick
in interface LocalPeerMXBean
public String getState()
getState
in interface LocalPeerMXBean
public String getQuorumAddress()
getQuorumAddress
in interface LocalPeerMXBean
public int getElectionType()
getElectionType
in interface LocalPeerMXBean
public String getElectionAddress()
getElectionAddress
in interface LocalPeerMXBean
public String getClientAddress()
getClientAddress
in interface LocalPeerMXBean
public String getLearnerType()
getLearnerType
in interface LocalPeerMXBean
public long getConfigVersion()
getConfigVersion
in interface LocalPeerMXBean
public String getQuorumSystemInfo()
getQuorumSystemInfo
in interface LocalPeerMXBean
public boolean isPartOfEnsemble()
isPartOfEnsemble
in interface LocalPeerMXBean
public boolean isLeader()
isLeader
in interface LocalPeerMXBean
public int getMaxCnxns()
getMaxCnxns
in interface LocalPeerMXBean
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.