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 |
addSessionExceptionPrcoessor(SessionExceptionProcessable processor) |
void |
addSessionHolder(SessionHoldable su) |
void |
clearSessionExceptionProcessor() |
void |
clearSessionHolder() |
org.apache.zookeeper.ZooKeeper |
getZooKeeperSession() |
boolean |
init() |
void |
removeSessionExceptionProcessor(SessionExceptionProcessable processor) |
void |
removeSessionHolder(SessionHoldable 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 addSessionHolder(SessionHoldable su)
public void removeSessionHolder(SessionHoldable su)
public void clearSessionHolder()
public void addSessionExceptionPrcoessor(SessionExceptionProcessable processor)
public void removeSessionExceptionProcessor(SessionExceptionProcessable processor)
public void clearSessionExceptionProcessor()
public boolean init()
init 在接口中 Lifecycleableinit 在类中 ControllableThreadpublic void uninit()
uninit 在接口中 Lifecycleableuninit 在类中 ControllableThreadprotected void work()
work 在类中 ControllableThreadCopyright © 2016. All rights reserved.