ParkNPark.middletier
Class ReplicationManager.StartupListener
java.lang.Object
java.lang.Thread
ParkNPark.middletier.ReplicationManager.StartupListener
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- ReplicationManager
protected class ReplicationManager.StartupListener
- extends Thread
Listens on a server process to determine if it started up
successfully or not
|
Field Summary |
protected Process |
process
The server process to listen for success messages on |
protected ServerState |
server
The server that is being restarted |
|
Method Summary |
void |
run()
Runs the thread that determines if the server started
up successfully or not |
| 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 |
process
protected Process process
- The server process to listen for success messages on
server
protected ServerState server
- The server that is being restarted
ReplicationManager.StartupListener
public ReplicationManager.StartupListener(ServerState server,
Process process)
- Creates a new startup listener that will listen for
the successful or unsuccessful startup of the given
server process. After success or failure is ascertained,
this thread exits
- Parameters:
server - The server that is being listened toprocess - The server process to listen for
successful messages on
run
public void run()
- Runs the thread that determines if the server started
up successfully or not
- Specified by:
run in interface Runnable- Overrides:
run in class Thread