ParkNPark.middletier
Class ReplicationManager.StartupListener

java.lang.Object
  extended by java.lang.Thread
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  Process process
          The server process to listen for success messages on
protected  ServerState server
          The server that is being restarted
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
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.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

process

protected Process process
The server process to listen for success messages on


server

protected ServerState server
The server that is being restarted

Constructor Detail

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 to
process - The server process to listen for successful messages on
Method Detail

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