|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.zookeeper.server.ZooKeeperServer
org.apache.zookeeper.server.quorum.QuorumZooKeeperServer
org.apache.zookeeper.server.quorum.LearnerZooKeeperServer
org.apache.zookeeper.server.quorum.ObserverZooKeeperServer
public class ObserverZooKeeperServer
A ZooKeeperServer for the Observer node type. Not much is different, but we anticipate specializing the request processors in the future.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.zookeeper.server.ZooKeeperServer |
---|
ZooKeeperServer.BasicDataTreeBuilder, ZooKeeperServer.DataTreeBuilder, ZooKeeperServer.Factory, ZooKeeperServer.MissingSessionException |
Field Summary |
---|
Fields inherited from class org.apache.zookeeper.server.quorum.QuorumZooKeeperServer |
---|
self |
Fields inherited from class org.apache.zookeeper.server.ZooKeeperServer |
---|
DEFAULT_TICK_TIME, firstProcessor, hzxid, jmxDataTreeBean, jmxServerBean, maxSessionTimeout, minSessionTimeout, ok, running, sessionTracker, tickTime |
Method Summary | |
---|---|
void |
commitRequest(Request request)
Unlike a Follower, which sees a full request only during the PROPOSAL phase, Observers get all the data required with the INFORM packet. |
Learner |
getLearner()
Abstract method to return the learner associated with this server. |
Observer |
getObserver()
|
java.lang.String |
getState()
|
protected void |
setupRequestProcessors()
Set up the request processors for an Observer: firstProcesor->commitProcessor->finalProcessor |
void |
sync()
|
Methods inherited from class org.apache.zookeeper.server.quorum.LearnerZooKeeperServer |
---|
createSessionTracker, getServerId, getTouchSnapshot, registerJMX, registerJMX, revalidateSession, unregisterJMX, unregisterJMX |
Methods inherited from class org.apache.zookeeper.server.quorum.QuorumZooKeeperServer |
---|
dumpConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Observer getObserver()
public Learner getLearner()
LearnerZooKeeperServer
getLearner
in class LearnerZooKeeperServer
public void commitRequest(Request request)
request
- protected void setupRequestProcessors()
setupRequestProcessors
in class ZooKeeperServer
public void sync()
public java.lang.String getState()
getState
in interface ServerStats.Provider
getState
in class ZooKeeperServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |