public class ZookeeperSessionMonitor extends ControllableThread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
ZookeeperSessionMonitor(String zk_host,
int timeout,
org.apache.zookeeper.Watcher global_watcher) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSubscriber(SessionUpdatable su) |
void |
clearSubscriber() |
org.apache.zookeeper.ZooKeeper |
getZooKeeperSession() |
boolean |
init() |
void |
removeSubscriber(SessionUpdatable su) |
void |
uninit() |
protected void |
work() |
defreeze, freeze, run, setSleepIntervalactiveCount, 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, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ZookeeperSessionMonitor(String zk_host, int timeout, org.apache.zookeeper.Watcher global_watcher)
public org.apache.zookeeper.ZooKeeper getZooKeeperSession()
public void addSubscriber(SessionUpdatable su)
public void removeSubscriber(SessionUpdatable su)
public void clearSubscriber()
public boolean init()
init 在接口中 Lifecycleableinit 在类中 ControllableThreadpublic void uninit()
uninit 在接口中 Lifecycleableuninit 在类中 ControllableThreadprotected void work()
work 在类中 ControllableThreadCopyright © 2016. All rights reserved.