public class ElectionAgentThread extends StoppableThread
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.BlockingQueue<java.nio.channels.SocketChannel> |
channelQueue |
protected java.util.logging.Formatter |
formatter |
protected java.util.logging.Logger |
logger |
protected Protocol |
protocol |
envImpl
Modifier | Constructor and Description |
---|---|
protected |
ElectionAgentThread(RepNode repNode,
Protocol protocol,
java.lang.String threadName) |
Modifier and Type | Method and Description |
---|---|
protected java.util.logging.Logger |
getLogger() |
protected int |
initiateSoftShutdown()
Threads that use shutdownThread() must define this method.
|
void |
shutdown()
Shuts down the Agent.
|
cleanup, getSavedShutdownException, getTotalCpuTime, getTotalUserTime, isShutdown, saveShutdownException, setExceptionListener, shutdownDone, shutdownThread
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected final Protocol protocol
protected final java.util.logging.Logger logger
protected final java.util.logging.Formatter formatter
protected final java.util.concurrent.BlockingQueue<java.nio.channels.SocketChannel> channelQueue
protected java.util.logging.Logger getLogger()
getLogger
in class StoppableThread
public void shutdown() throws java.lang.InterruptedException
java.lang.InterruptedException
protected int initiateSoftShutdown()
StoppableThread
initiateSoftShutdown
in class StoppableThread
Copyright (c) 2004-2012 Oracle. All rights reserved.