Package | Description |
---|---|
org.apache.zookeeper.server.quorum |
Modifier and Type | Field | Description |
---|---|---|
protected QuorumPeer.LearnerType |
QuorumPeerConfig.peerType |
|
QuorumPeer.LearnerType |
QuorumPeer.QuorumServer.type |
Modifier and Type | Method | Description |
---|---|---|
QuorumPeer.LearnerType |
LearnerHandler.getLearnerType() |
|
QuorumPeer.LearnerType |
QuorumPeer.getLearnerType() |
|
QuorumPeer.LearnerType |
QuorumPeerConfig.getPeerType() |
|
static QuorumPeer.LearnerType |
QuorumPeer.LearnerType.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static QuorumPeer.LearnerType[] |
QuorumPeer.LearnerType.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
void |
QuorumPeer.setLearnerType(QuorumPeer.LearnerType p) |
Sets the LearnerType both in the QuorumPeer and in the peerMap
|
void |
Leader.waitForNewLeaderAck(long sid,
long zxid,
QuorumPeer.LearnerType learnerType) |
Process NEWLEADER ack of a given sid and wait until the leader receives
sufficient acks.
|
Constructor | Description |
---|---|
QuorumServer(long id,
java.lang.String hostname,
java.lang.Integer port,
java.lang.Integer electionPort,
QuorumPeer.LearnerType type) |
Copyright © 2018 The Apache Software Foundation