com.anwrt.ooserver.daemon
Class AdminAcceptorThread
java.lang.Object
java.lang.Thread
com.anwrt.ooserver.daemon.AdminAcceptorThread
- All Implemented Interfaces:
- Runnable
public class AdminAcceptorThread
- extends Thread
Accepts connections from admin daemon instances.
- Author:
- Jounayd Id Salah
Method Summary |
void |
cancel()
Called to stop the admin thread |
void |
run()
Accept connections |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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 |
ADMIN_LOGGER_TAG
public static final String ADMIN_LOGGER_TAG
- displayed tag used for logging
- See Also:
- Constant Field Values
AdminAcceptorThread
public AdminAcceptorThread(Daemon daemon,
Timer shutdownThread,
String acceptString)
- Creates an acceptor to further accept connections from admin daemon instances
- Parameters:
daemon
- the current daemonshutdownThread
- acceptString
- the admin acceptor string (usually passed by the configuration file)
run
public void run()
- Accept connections
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
- See Also:
Thread.run()
cancel
public void cancel()
- Called to stop the admin thread
Copyright © 2010 Nuxeo SAS. All Rights Reserved.