org.objectweb.proactive.core.process
Interface ExternalProcessDecorator

All Superinterfaces:
ExternalProcess, java.io.Serializable, UniversalProcess
All Known Implementing Classes:
AbstractExternalProcessDecorator

public interface ExternalProcessDecorator
extends ExternalProcess

A class implementing this interface is able to start an embedded ExternalProcess.


Field Summary
static int APPEND_TO_COMMAND_COMPOSITION
          Composition in which the command of the target process is appended to the command of this process.
static int GIVE_COMMAND_AS_PARAMETER
          Composition in which the command of the target process is given as parameter of the command of this process.
static int SEND_TO_OUTPUT_STREAM_COMPOSITION
          Composition in which the command of the target process is sent into the output stream of this process.
 
Fields inherited from interface org.objectweb.proactive.core.process.UniversalProcess
logger
 
Method Summary
 int getCompositionType()
          Returns the type of composition that occurs between the commands of two processes.
 ExternalProcess getTargetProcess()
          Returns the process target of this process.
 void setCompositionType(int compositionType)
          Sets the type of composition that occurs between the commands of two processes.
 void setTargetProcess(ExternalProcess targetProcess)
          Sets the process target of this process.
 
Methods inherited from interface org.objectweb.proactive.core.process.ExternalProcess
getErrorMessageLogger, getInputMessageLogger, getOutputMessageSink, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink
 
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
 

Field Detail

APPEND_TO_COMMAND_COMPOSITION

public static final int APPEND_TO_COMMAND_COMPOSITION
Composition in which the command of the target process is appended to the command of this process.

See Also:
Constant Field Values

SEND_TO_OUTPUT_STREAM_COMPOSITION

public static final int SEND_TO_OUTPUT_STREAM_COMPOSITION
Composition in which the command of the target process is sent into the output stream of this process.

See Also:
Constant Field Values

GIVE_COMMAND_AS_PARAMETER

public static final int GIVE_COMMAND_AS_PARAMETER
Composition in which the command of the target process is given as parameter of the command of this process.

See Also:
Constant Field Values
Method Detail

getTargetProcess

public ExternalProcess getTargetProcess()
Returns the process target of this process. The target process is embedded inside the current process.

Returns:
the process target of this process

setTargetProcess

public void setTargetProcess(ExternalProcess targetProcess)
Sets the process target of this process. The target process is embedded inside the current process.

Parameters:
targetProcess - the process target of this process

getCompositionType

public int getCompositionType()
Returns the type of composition that occurs between the commands of two processes. Type are APPEND_TO_COMMAND_COMPOSITION or SEND_TO_OUTPUT_STREAM_COMPOSITION.

Returns:
the type of composition that occurs between the commands of two processes

setCompositionType

public void setCompositionType(int compositionType)
Sets the type of composition that occurs between the commands of two processes. Type are APPEND_TO_COMMAND_COMPOSITION or SEND_TO_OUTPUT_STREAM_COMPOSITION.

Parameters:
compositionType - the type of composition that occurs between the commands of two processes


Copyright © April 2004 INRIA All Rights Reserved.