edu.cmu.emulator.daemon
Class NodeLogger

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

public class NodeLogger
extends ProcessMonitor
implements ProcControl

Logs stdout and/or stderr to a file on the node.

See Also:
Serialized Form

Field Summary
protected  String stderrFileName
           
protected  String stdoutFileName
           
 
Fields inherited from class edu.cmu.emulator.daemon.ProcessMonitor
nodeDaemon, p, pID
 
Constructor Summary
NodeLogger(String stdoutFileName, String stderrFileName)
           
 
Method Summary
 void processStarted(NodeDaemon nodeDaemon, Process p, int pID)
           
 
Methods inherited from class edu.cmu.emulator.daemon.ProcessMonitor
run, sendMessageToEmu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stdoutFileName

protected String stdoutFileName

stderrFileName

protected String stderrFileName
Constructor Detail

NodeLogger

public NodeLogger(String stdoutFileName,
                  String stderrFileName)
Method Detail

processStarted

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


Copyright © 2013. All Rights Reserved.