|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.zookeeper.server.quorum.Learner
org.apache.zookeeper.server.quorum.Observer
public class Observer
Observers are peers that do not take part in the atomic broadcast protocol. Instead, they are informed of successful proposals by the Leader. Observers therefore naturally act as a relay point for publishing the proposal stream and can relieve Followers of some of the connection load. Observers may submit proposals, but do not vote in their acceptance. See ZOOKEEPER-368 for a discussion of this feature.
Field Summary |
---|
Fields inherited from class org.apache.zookeeper.server.quorum.Learner |
---|
bufferedOutput, leaderIs, leaderOs, LOG, sock |
Method Summary | |
---|---|
protected void |
processPacket(QuorumPacket qp)
Controls the response of an observer to the receipt of a quorumpacket |
void |
shutdown()
Shutdown the Observer. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.zookeeper.server.quorum.Learner |
---|
connectToLeader, findLeader, getPendingRevalidationsCount, getSocket, ping, registerWithLeader, revalidate, syncWithLeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
protected void processPacket(QuorumPacket qp) throws java.io.IOException
qp
-
java.io.IOException
public void shutdown()
shutdown
in class Learner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |