org.objectweb.proactive.core.process
Interface ExternalProcess

All Superinterfaces:
java.io.Serializable, UniversalProcess
All Known Subinterfaces:
ExternalProcessDecorator, JVMProcess
All Known Implementing Classes:
AbstractExternalProcess, AbstractExternalProcessDecorator, 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.


Field Summary
 
Fields inherited from interface org.objectweb.proactive.core.process.UniversalProcess
logger
 
Method Summary
 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
getCertificateLocation, getCommand, getEnvironment, getHostname, getPrivateKeyLocation, getSecurityFile, getUsername, isFinished, isStarted, setCertificateLocation, setEnvironment, setHostname, setPrivateKeyLocation, setSecurityFile, setUsername, startProcess, stopProcess, waitFor
 

Method Detail

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 2004 INRIA All Rights Reserved.