java.lang.Runnablepublic class LearnerHandler extends ZooKeeperThread
| Modifier and Type | Field | Description |
|---|---|---|
protected long |
sid |
ZooKeeper server identifier of this learner
|
protected java.net.Socket |
sock |
|
protected int |
version |
| Modifier and Type | Method | Description |
|---|---|---|
QuorumPeer.LearnerType |
getLearnerType() |
|
java.net.Socket |
getSocket() |
|
static java.lang.String |
packetToString(QuorumPacket p) |
|
void |
ping() |
ping calls from the leader to the peers
|
void |
run() |
This thread will receive packets from the peer and process them and
also listen to new connections from new peers.
|
void |
shutdown() |
|
boolean |
synced() |
|
long |
tickOfNextAckDeadline() |
|
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldhandleExceptionprotected final java.net.Socket sock
protected long sid
protected int version
public java.net.Socket getSocket()
public java.lang.String toString()
toString in class java.lang.Threadpublic QuorumPeer.LearnerType getLearnerType()
public static java.lang.String packetToString(QuorumPacket p)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void shutdown()
public long tickOfNextAckDeadline()
public void ping()
public boolean synced()
Copyright © 2018 The Apache Software Foundation