edu.cmu.emulator.daemon
Interface DaemonInterface

All Superinterfaces:
Remote
All Known Implementing Classes:
NodeDaemon

public interface DaemonInterface
extends Remote

Defines the methods that need to be implemented by the node daemons.


Method Summary
 int execProcess_NodeLogIO(String[] cmds, String stdoutLogName, String stderrLogName)
          Convenience routine to execProcess and log stdout and/or stderr on the node.
 int[] execProcess_RelayIO(String[] cmds, int ioOptions)
          Convenience routine to relay io to/from control node.
 int execProcess(String[] cmds)
           
 int execProcess(String[] cmds, ProcControl pc)
          Fundamental execProcess routine.
 void init(String nodeName, EmuInterface emu)
           
 void reInit()
           
 void stopProcess(int processID)
          Stop a remote process.
 

Method Detail

init

void init(String nodeName,
          EmuInterface emu)
          throws RemoteException
Throws:
RemoteException

reInit

void reInit()
            throws RemoteException
Throws:
RemoteException

execProcess

int execProcess(String[] cmds,
                ProcControl pc)
                throws RemoteException
Fundamental execProcess routine. Start a new process whose name and arguements are passed in the cmds array

Parameters:
cmds - The array of strings which holds the command name and the arguements
Returns:
The ID of the process created
Throws:
RemoteException

execProcess

int execProcess(String[] cmds)
                throws RemoteException
Throws:
RemoteException

execProcess_NodeLogIO

int execProcess_NodeLogIO(String[] cmds,
                          String stdoutLogName,
                          String stderrLogName)
                          throws RemoteException
Convenience routine to execProcess and log stdout and/or stderr on the node.

Throws:
RemoteException

execProcess_RelayIO

int[] execProcess_RelayIO(String[] cmds,
                          int ioOptions)
                          throws RemoteException
Convenience routine to relay io to/from control node.

Throws:
RemoteException

stopProcess

void stopProcess(int processID)
                 throws RemoteException
Stop a remote process.

Parameters:
processID - The ID of the remote process.
Throws:
RemoteException


Copyright © 2013. All Rights Reserved.