Example usage for Java org.apache.zookeeper.server.quorum QuorumPeer fields, constructors, methods, implement or subclass
The text is from its open source code.
QuorumPeer() | |
QuorumPeer(Map For backward compatibility purposes, we instantiate QuorumMaj by default. | |
QuorumPeer(Map This constructor is only used by the existing unit test code. |
int | getClientPort() |
Election | getElectionAlg() Get an instance of LeaderElection |
FileTxnSnapLog | getTxnFactory() |
void | setCnxnFactory(ServerCnxnFactory cnxnFactory) |
void | setElectionType(int electionType) Sets the election type |
void | setInitLimit(int initLimit) Set the number of ticks that the initial synchronization phase can take |
void | setLearnerType(LearnerType p) Sets the LearnerType |
void | setMaxSessionTimeout(int max) maximum session timeout in milliseconds |
void | setMinSessionTimeout(int min) minimum session timeout in milliseconds |
void | setMyid(long myid) set the id of this quorum peer. |
void | setSyncLimit(int syncLimit) Set the synclimit |
void | setTickTime(int tickTime) Set the number of milliseconds of each tick |
void | setTxnFactory(FileTxnSnapLog factory) |
void | setZKDatabase(ZKDatabase database) set zk database for this node |
void | shutdown() |
void | start() |