private static class TestZKLeaderManager.MockLeader extends Thread implements org.apache.hadoop.hbase.Stoppable
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private int |
index |
private AtomicBoolean |
master |
private boolean |
stopped |
private org.apache.hadoop.hbase.zookeeper.ZKWatcher |
watcher |
private org.apache.hadoop.hbase.zookeeper.ZKLeaderManager |
zkLeader |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
MockLeader(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher,
int index) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
abdicate() |
int |
getIndex() |
org.apache.hadoop.hbase.zookeeper.ZKWatcher |
getWatcher() |
boolean |
isMaster() |
boolean |
isStopped() |
void |
run() |
void |
stop(String why) |
activeCount, 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, yield
private volatile boolean stopped
private org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher
private org.apache.hadoop.hbase.zookeeper.ZKLeaderManager zkLeader
private AtomicBoolean master
private int index
MockLeader(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, int index)
public boolean isMaster()
public int getIndex()
public org.apache.hadoop.hbase.zookeeper.ZKWatcher getWatcher()
void abdicate()
public boolean isStopped()
isStopped
in interface org.apache.hadoop.hbase.Stoppable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.