Interface LocalPeerMXBean
-
- All Superinterfaces:
ServerMXBean
- All Known Implementing Classes:
LocalPeerBean
public interface LocalPeerMXBean extends ServerMXBean
A local zookeeper server MBean interface. Unlike the remote peer, the local peer provides complete state/statistics at runtime and can be managed (just like a standalone zookeeper server).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getElectionType()
int
getInitLimit()
int
getMaxClientCnxnsPerHost()
Current maxClientCnxns allowed from a particular hostint
getMaxSessionTimeout()
int
getMinSessionTimeout()
java.lang.String
getQuorumAddress()
java.lang.String
getState()
int
getSyncLimit()
int
getTick()
int
getTickTime()
-
Methods inherited from interface org.apache.zookeeper.server.quorum.ServerMXBean
getName, getStartTime
-
-
-
-
Method Detail
-
getTickTime
int getTickTime()
- Returns:
- the number of milliseconds of each tick
-
getMaxClientCnxnsPerHost
int getMaxClientCnxnsPerHost()
Current maxClientCnxns allowed from a particular host
-
getMinSessionTimeout
int getMinSessionTimeout()
- Returns:
- the minimum number of milliseconds allowed for a session timeout
-
getMaxSessionTimeout
int getMaxSessionTimeout()
- Returns:
- the maximum number of milliseconds allowed for a session timeout
-
getInitLimit
int getInitLimit()
- Returns:
- the number of ticks that the initial sync phase can take
-
getSyncLimit
int getSyncLimit()
- Returns:
- the number of ticks that can pass between sending a request and getting a acknowledgment
-
getTick
int getTick()
- Returns:
- the current tick
-
getState
java.lang.String getState()
- Returns:
- the current server state
-
getQuorumAddress
java.lang.String getQuorumAddress()
- Returns:
- the quorum address
-
getElectionType
int getElectionType()
- Returns:
- the election type
-
-