org.apache.zookeeper.server.quorum
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).
getTickTime
int getTickTime()
- Returns:
- the number of milliseconds of each tick
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
String getState()
- Returns:
- the current server state
getQuorumAddress
String getQuorumAddress()
- Returns:
- the quorum address
getElectionType
int getElectionType()
- Returns:
- the election type