private class AuthenticationTokenSecretManager.LeaderElector extends Thread implements Stoppable
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
isMaster
Flag indicating whether we're in charge of rolling/expiring keys
|
private boolean |
stopped |
private ZKLeaderManager |
zkLeader |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
LeaderElector(ZKWatcher watcher,
String serverName) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMaster() |
boolean |
isStopped()
Returns True if
Stoppable.stop(String) has been closed. |
void |
run() |
void |
stop(String reason)
Stop this service.
|
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 boolean stopped
private boolean isMaster
private ZKLeaderManager zkLeader
public LeaderElector(ZKWatcher watcher, String serverName)
public boolean isMaster()
public boolean isStopped()
Stoppable
Stoppable.stop(String)
has been closed.public void stop(String reason)
Stoppable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.