org.jppf.process
Class LauncherListener

java.lang.Object
  extended by java.lang.Thread
      extended by org.jppf.process.LauncherListener
All Implemented Interfaces:
Runnable

public class LauncherListener
extends Thread

Instances of this class isten to a socket connection setup in the ProcessLauncher, to handle the situation when the Launcher dies unexpectedly.
In that situation, the connection is broken and this process knows that it must exit.

Author:
Laurent Cohen

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LauncherListener(int port)
          Initialize this LauncherListener with the specified port.
 
Method Summary
 void run()
          Create a socket connection and listen to it, and exit this process when the conneciton is broken.
 
Methods inherited from class java.lang.Thread
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LauncherListener

public LauncherListener(int port)
Initialize this LauncherListener with the specified port.

Parameters:
port - - the port to listen to.
Method Detail

run

public void run()
Create a socket connection and listen to it, and exit this process when the conneciton is broken.

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()


Copyright © 2005-2010 JPPF Team.