org.objectweb.proactive.core.process
Class DependentListProcessDecorator

java.lang.Object
  extended byorg.objectweb.proactive.core.process.AbstractSequentialListProcessDecorator
      extended byorg.objectweb.proactive.core.process.DependentListProcessDecorator
All Implemented Interfaces:
ExternalProcess, ExternalProcessDecorator, java.io.Serializable, UniversalProcess

public class DependentListProcessDecorator
extends AbstractSequentialListProcessDecorator

This class contains a list of processes that have a dependency with its predecessor.

Since:
ProActive 3.0
Version:
1.0, 01 Dec 2005
Author:
ProActiveTeam
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractSequentialListProcessDecorator
currentRank, processes
 
Fields inherited from interface org.objectweb.proactive.core.process.ExternalProcessDecorator
APPEND_TO_COMMAND_COMPOSITION, COPY_FILE_AND_APPEND_COMMAND, GIVE_COMMAND_AS_PARAMETER, SEND_TO_OUTPUT_STREAM_COMPOSITION
 
Fields inherited from interface org.objectweb.proactive.core.process.UniversalProcess
logger, UNKNOWN_NODE_NUMBER
 
Constructor Summary
DependentListProcessDecorator()
           
 
Method Summary
 void addProcessToList(ExternalProcess process)
          Add a process to the processes queue - first process is not a dependent process unlike the others
protected  ExternalProcess createProcess()
           
 java.lang.String getHostname()
          Return the hostname target of this process.
 java.lang.String getProcessId()
          Returns the id of the process
 boolean isDependent()
          Returns true if and only if this process is dependent
 boolean isHierarchical()
          Returns true if and only if this process is hierarchical
 boolean isSequential()
          Returns true if and only if this process is sequential
 void setHostname(java.lang.String hostname)
          Set the hostname target of this process.
 void startProcess()
          Starts the process by executing the command.
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractSequentialListProcessDecorator
addProcessToList, closeStream, exitValue, getCommand, getCommandPath, getCompositionType, getEnvironment, getErrorMessageLogger, getFileTransferWorkShopDeploy, getFileTransferWorkShopRetrieve, getFinalProcess, getFirstProcess, getInputMessageLogger, getListProcess, getNextProcess, getNodeNumber, getOutputMessageSink, getTargetProcess, getUsername, isFinished, isStarted, setCommandPath, setCompositionType, setEnvironment, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink, setStarted, setTargetProcess, setUsername, startFileTransfer, stopProcess, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependentListProcessDecorator

public DependentListProcessDecorator()
Method Detail

addProcessToList

public void addProcessToList(ExternalProcess process)
Add a process to the processes queue - first process is not a dependent process unlike the others

Overrides:
addProcessToList in class AbstractSequentialListProcessDecorator
Parameters:
process -

getProcessId

public java.lang.String getProcessId()
Description copied from interface: UniversalProcess
Returns the id of the process

Specified by:
getProcessId in interface UniversalProcess
Overrides:
getProcessId in class AbstractSequentialListProcessDecorator
See Also:
UniversalProcess.getProcessId()

isSequential

public boolean isSequential()
Description copied from interface: UniversalProcess
Returns true if and only if this process is sequential

Specified by:
isSequential in interface UniversalProcess
Overrides:
isSequential in class AbstractSequentialListProcessDecorator

isDependent

public boolean isDependent()
Description copied from interface: UniversalProcess
Returns true if and only if this process is dependent


isHierarchical

public boolean isHierarchical()
Description copied from interface: UniversalProcess
Returns true if and only if this process is hierarchical


getHostname

public java.lang.String getHostname()
Description copied from interface: UniversalProcess
Return the hostname target of this process.

Returns:
the hostname target of this process.

setHostname

public void setHostname(java.lang.String hostname)
Description copied from interface: UniversalProcess
Set the hostname target of this process. By default the target host is the localhost.

Parameters:
hostname - the target hostname.

createProcess

protected ExternalProcess createProcess()
Specified by:
createProcess in class AbstractSequentialListProcessDecorator

startProcess

public void startProcess()
                  throws java.io.IOException
Description copied from interface: UniversalProcess
Starts the process by executing the command. The process can only be started once.

Throws:
java.io.IOException - if the process cannot be started.


Copyright 2001-2005 INRIA All Rights Reserved.