org.objectweb.proactive.core.process.ssh
Class SSHHierarchicalProcess

java.lang.Object
  extended byorg.objectweb.proactive.core.process.AbstractUniversalProcess
      extended byorg.objectweb.proactive.core.process.AbstractExternalProcess
          extended byorg.objectweb.proactive.core.process.AbstractExternalProcessDecorator
              extended byorg.objectweb.proactive.core.process.ssh.SSHProcess
                  extended byorg.objectweb.proactive.core.process.ssh.SSHHierarchicalProcess
All Implemented Interfaces:
ExternalProcess, ExternalProcessDecorator, HierarchicalProcess, java.io.Serializable, UniversalProcess

public class SSHHierarchicalProcess
extends SSHProcess
implements HierarchicalProcess

This process starts a forwarder defined by the target process using SSH. The hierarchicalProcess will then be deployed for the forwarder. The hierarchical process must be set before starting the process.

Author:
ProActive Team
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
AbstractExternalProcessDecorator.CompositeMessageLogger, AbstractExternalProcessDecorator.CompositeMessageSink
 
Nested classes inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess
AbstractExternalProcess.NullMessageLogger, AbstractExternalProcess.ProcessInputHandler, AbstractExternalProcess.ProcessOutputHandler, AbstractExternalProcess.SimpleMessageSink, AbstractExternalProcess.StandardOutputMessageLogger
 
Field Summary
 
Fields inherited from class org.objectweb.proactive.core.process.ssh.SSHProcess
DEFAULT_SSH_COPYPROTOCOL, DEFAULT_SSHPATH
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
targetProcess
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess
clogger, closeStream, errorMessageLogger, externalProcess, FILE_TRANSFER_DEFAULT_PROTOCOL, fileTransferLogger, inputMessageLogger, IS_WINDOWS_SYSTEM, NO_COMPOSITION, outputMessageSink
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractUniversalProcess
certificateLocation, command, command_path, DEFAULT_HOSTNAME, DEFAULT_USERNAME, environment, hostname, isFinished, isStarted, LOCALHOST, privateKeyLocation, securityFile, username
 
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
SSHHierarchicalProcess()
           
 
Method Summary
 ExternalProcess getHierarchicalProcess()
          Get the Process to be deployed from the forwarder
 int getNodeNumber()
          Returns the number of nodes targeted
 boolean isHierarchical()
          Returns true if and only if this process is hierarchical
 void setHierarchicalProcess(ExternalProcess process)
          Set the Process to be deployed from the forwarder
 void startProcess()
          Starts the process by executing the command.
 
Methods inherited from class org.objectweb.proactive.core.process.ssh.SSHProcess
buildSSHCommand, buildUnixSSHCommand, buildWindowsSSHCommand, getFinalProcess, getProcessId, internalBuildCommand, main
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
buildCommand, getCompositionType, getTargetProcess, handleCopyFile, handleOutput, internalStartProcess, setCompositionType, setTargetProcess, toString
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess
buildEnvironmentCommand, buildUnixEnvironmentCommand, buildWindowsEnvironmentCommand, closeStream, getErrorMessageLogger, getFileTransferDefaultCopyProtocol, getFileTransferWorkShopDeploy, getFileTransferWorkShopRetrieve, getInputMessageLogger, getOutputMessageSink, handleError, handleInput, handleProcess, internalFileTransferDefaultProtocol, internalStartFileTransfer, internalStopProcess, internalWaitFor, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractUniversalProcess
checkStarted, getCommand, getCommandPath, getEnvironment, getHostname, getUsername, isFinished, isStarted, pushProcessAttributes, setCommandPath, setEnvironment, setHostname, setUsername, startFileTransfer, stopProcess, toString, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.proactive.core.process.ExternalProcess
closeStream, getErrorMessageLogger, getFileTransferWorkShopDeploy, getFileTransferWorkShopRetrieve, getInputMessageLogger, getOutputMessageSink, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink
 
Methods inherited from interface org.objectweb.proactive.core.process.UniversalProcess
getCommand, getCommandPath, getEnvironment, getHostname, getUsername, isFinished, isStarted, setCommandPath, setEnvironment, setHostname, setUsername, startFileTransfer, stopProcess, waitFor
 

Constructor Detail

SSHHierarchicalProcess

public SSHHierarchicalProcess()
Method Detail

setHierarchicalProcess

public void setHierarchicalProcess(ExternalProcess process)
Description copied from interface: HierarchicalProcess
Set the Process to be deployed from the forwarder

Specified by:
setHierarchicalProcess in interface HierarchicalProcess
Parameters:
process -
See Also:
HierarchicalProcess.setHierarchicalProcess(ExternalProcess)

getHierarchicalProcess

public ExternalProcess getHierarchicalProcess()
Description copied from interface: HierarchicalProcess
Get the Process to be deployed from the forwarder

Specified by:
getHierarchicalProcess in interface HierarchicalProcess
Returns:
the Process to be deployed from the forwarder
See Also:
HierarchicalProcess.getHierarchicalProcess()

isHierarchical

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

Specified by:
isHierarchical in interface UniversalProcess
Overrides:
isHierarchical in class AbstractUniversalProcess
See Also:
UniversalProcess.isHierarchical()

getNodeNumber

public int getNodeNumber()
Description copied from interface: UniversalProcess
Returns the number of nodes targeted

Specified by:
getNodeNumber in interface UniversalProcess
Overrides:
getNodeNumber in class SSHProcess
See Also:
UniversalProcess.getNodeNumber()

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.

Specified by:
startProcess in interface UniversalProcess
Overrides:
startProcess in class AbstractUniversalProcess
Throws:
java.io.IOException
See Also:
UniversalProcess.startProcess()


Copyright 2001-2005 INRIA All Rights Reserved.