org.objectweb.proactive.core.process
Interface ExternalProcess

All Superinterfaces:
java.io.Serializable, UniversalProcess
All Known Subinterfaces:
ExternalProcessDecorator, JVMProcess
All Known Implementing Classes:
AbstractExternalProcess, AbstractExternalProcessDecorator, AbstractListProcessDecorator, JVMProcessImpl, RSHJVMProcess, SSHJVMProcess

public interface ExternalProcess
extends UniversalProcess

A class implementing this interface is able to start a UniversalProcess and to connect its input/output to handlers or to close all streams.


Field Summary
 
Fields inherited from interface org.objectweb.proactive.core.process.UniversalProcess
logger
 
Method Summary
 void closeStream()
          Closes Input, Output, Error stream just after forking this process
 MessageLogger getErrorMessageLogger()
          Returns the MessageLogger handling the error stream of the process
 MessageLogger getInputMessageLogger()
          Returns the MessageLogger handling the input stream of the process
 MessageSink getOutputMessageSink()
          Returns the MessageSink handling the output stream of the process
 void setErrorMessageLogger(MessageLogger errorMessageLogger)
          sets the MessageLogger handling the error stream of the process
 void setInputMessageLogger(MessageLogger inputMessageLogger)
          sets the MessageLogger handling the input stream of the process
 void setOutputMessageSink(MessageSink outputMessageSink)
          sets the MessageSink handling the output stream of the process
 
Methods inherited from interface org.objectweb.proactive.core.process.UniversalProcess
getCommand, getCommandPath, getEnvironment, getFinalProcess, getHostname, getNodeNumber, getProcessId, getUsername, isFinished, isStarted, setCommandPath, setEnvironment, setHostname, setUsername, startProcess, stopProcess, waitFor
 

Method Detail

closeStream

public void closeStream()
Closes Input, Output, Error stream just after forking this process


getInputMessageLogger

public MessageLogger getInputMessageLogger()
Returns the MessageLogger handling the input stream of the process

Returns:
the MessageLogger handling the input stream of the process

getErrorMessageLogger

public MessageLogger getErrorMessageLogger()
Returns the MessageLogger handling the error stream of the process

Returns:
the MessageLogger handling the error stream of the process

getOutputMessageSink

public MessageSink getOutputMessageSink()
Returns the MessageSink handling the output stream of the process

Returns:
the MessageSink handling the output stream of the process

setInputMessageLogger

public void setInputMessageLogger(MessageLogger inputMessageLogger)
sets the MessageLogger handling the input stream of the process

Parameters:
inputMessageLogger - the handler of the input stream of the process

setErrorMessageLogger

public void setErrorMessageLogger(MessageLogger errorMessageLogger)
sets the MessageLogger handling the error stream of the process

Parameters:
errorMessageLogger - the handler of the error stream of the process

setOutputMessageSink

public void setOutputMessageSink(MessageSink outputMessageSink)
sets the MessageSink handling the output stream of the process

Parameters:
outputMessageSink - the handler of the output stream of the process


Copyright ? April 2005 INRIA All Rights Reserved.