public class ElectionAgentThread extends StoppableThread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<DataChannel> |
channelQueue |
protected ReplicationFormatter |
formatter |
protected Logger |
logger |
protected Protocol |
protocol |
envImplMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
ElectionAgentThread(EnvironmentImpl envImpl,
Protocol protocol,
String threadName) |
protected |
ElectionAgentThread(RepNode repNode,
Protocol protocol,
String threadName) |
| Modifier and Type | Method and Description |
|---|---|
protected Logger |
getLogger() |
protected int |
initiateSoftShutdown()
Threads that use shutdownThread() must define this method.
|
void |
shutdown()
Shuts down the Agent.
|
cleanup, getSavedShutdownException, getTotalCpuTime, getTotalUserTime, handleUncaughtException, isShutdown, saveShutdownException, shutdownDone, shutdownThreadactiveCount, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected final Protocol protocol
protected final Logger logger
protected final ReplicationFormatter formatter
protected final BlockingQueue<DataChannel> channelQueue
protected ElectionAgentThread(RepNode repNode, Protocol protocol, String threadName)
protected ElectionAgentThread(EnvironmentImpl envImpl, Protocol protocol, String threadName)
protected Logger getLogger()
getLogger in class StoppableThreadpublic void shutdown()
throws InterruptedException
InterruptedExceptionprotected int initiateSoftShutdown()
StoppableThreadinitiateSoftShutdown in class StoppableThreadCopyright © 2024. All rights reserved.