Java org.apache.zookeeper.server.quorum QuorumPeer fields, constructors, methods, implement or subclass

Example usage for Java org.apache.zookeeper.server.quorum QuorumPeer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.zookeeper.server.quorum QuorumPeer.

The text is from its open source code.

Constructor

Method

intgetClientPort()
ElectiongetElectionAlg()
Get an instance of LeaderElection
FileTxnSnapLoggetTxnFactory()
voidsetCnxnFactory(ServerCnxnFactory cnxnFactory)
voidsetElectionType(int electionType)
Sets the election type
voidsetInitLimit(int initLimit)
Set the number of ticks that the initial synchronization phase can take
voidsetLearnerType(LearnerType p)
Sets the LearnerType
voidsetMaxSessionTimeout(int max)
maximum session timeout in milliseconds
voidsetMinSessionTimeout(int min)
minimum session timeout in milliseconds
voidsetMyid(long myid)
set the id of this quorum peer.
voidsetSyncLimit(int syncLimit)
Set the synclimit
voidsetTickTime(int tickTime)
Set the number of milliseconds of each tick
voidsetTxnFactory(FileTxnSnapLog factory)
voidsetZKDatabase(ZKDatabase database)
set zk database for this node
voidshutdown()
voidstart()