edu.cmu.emulator.daemon
Class IORelay_NodeElement

java.lang.Object
  extended by edu.cmu.emulator.daemon.IORelay_NodeElement
All Implemented Interfaces:
ProcControl, Serializable, Runnable

public class IORelay_NodeElement
extends Object
implements Runnable, ProcControl

See Also:
Serialized Form

Field Summary
protected  Process p
           
protected  ProcessMonitor pMonitor
           
protected  ServerSocket serverSocket
           
protected  boolean stderr
           
protected  boolean stdin
           
protected  boolean stdout
           
 
Constructor Summary
IORelay_NodeElement(int ioOptions)
           
 
Method Summary
 int getServerPort()
           
protected  void listenForConnection()
           
 void processStarted(NodeDaemon nodeDaemon, Process p, int pID)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pMonitor

protected ProcessMonitor pMonitor

serverSocket

protected ServerSocket serverSocket

p

protected Process p

stdin

protected boolean stdin

stdout

protected boolean stdout

stderr

protected boolean stderr
Constructor Detail

IORelay_NodeElement

public IORelay_NodeElement(int ioOptions)
Method Detail

processStarted

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

listenForConnection

protected void listenForConnection()

getServerPort

public int getServerPort()

run

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


Copyright © 2013. All Rights Reserved.