edu.cmu.emulator.daemon
Class ProcessMonitor

java.lang.Object
  extended by edu.cmu.emulator.daemon.ProcessMonitor
All Implemented Interfaces:
ProcControl, Serializable, Runnable
Direct Known Subclasses:
NodeLogger, ProcOutputMonitor

public class ProcessMonitor
extends Object
implements ProcControl, Runnable

Default ProcControl. Simply waits for a process to exit and informs the EmuController.

See Also:
Serialized Form

Field Summary
protected  NodeDaemon nodeDaemon
           
protected  Process p
           
protected  int pID
           
 
Constructor Summary
ProcessMonitor()
           
 
Method Summary
 void processStarted(NodeDaemon nodeDaemon, Process p, int pID)
           
 void run()
           
 void sendMessageToEmu(Object msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeDaemon

protected NodeDaemon nodeDaemon

p

protected Process p

pID

protected int pID
Constructor Detail

ProcessMonitor

public ProcessMonitor()
Method Detail

processStarted

public void processStarted(NodeDaemon nodeDaemon,
                           Process p,
                           int pID)
                    throws ProcessStartException
Specified by:
processStarted in interface ProcControl
Throws:
ProcessStartException

sendMessageToEmu

public void sendMessageToEmu(Object msg)

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2013. All Rights Reserved.