org.objectweb.proactive.core.process.rlogin
Class RLoginProcess
java.lang.Object
org.objectweb.proactive.core.process.AbstractUniversalProcess
org.objectweb.proactive.core.process.AbstractExternalProcess
org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
org.objectweb.proactive.core.process.rlogin.RLoginProcess
- All Implemented Interfaces:
- ExternalProcess, ExternalProcessDecorator, java.io.Serializable, UniversalProcess
- public class RLoginProcess
- extends AbstractExternalProcessDecorator
The RloginProcess class is able to start any class, of the ProActive library,
using rlogin command.
For instance:
...............
PrunSubProcess lsf = new PrunSubProcess(new SimpleExternalProcess("ls -lsa"));
RLoginProcess p = new RLoginProcess(lsf, false);
p.setHostname("cluster_front_end_name");
p.startProcess();
...............
- Since:
- ProActive 0.9.4
- Version:
- 1.0, 2002/09/20
- Author:
- ProActive Team
- See Also:
- Serialized Form
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 |
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, isHierarchical, isStarted, pushProcessAttributes, setCommandPath, setEnvironment, setHostname, setUsername, startFileTransfer, startProcess, 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.UniversalProcess |
getCommand, getCommandPath, getEnvironment, getHostname, getUsername, isFinished, isHierarchical, isStarted, setCommandPath, setEnvironment, setHostname, setUsername, startFileTransfer, startProcess, stopProcess, waitFor |
DEFAULT_RLOGINPATH
public static final java.lang.String DEFAULT_RLOGINPATH
- See Also:
- Constant Field Values
RLoginProcess
public RLoginProcess()
- Creates a new RloginProcess
Used with XML Descriptors
RLoginProcess
public RLoginProcess(ExternalProcess targetProcess)
- Creates a new RloginProcess
- Parameters:
targetProcess
- The target process associated to this process. The target process
represents the process that will be launched after logging remote host with rlogin
RLoginProcess
public RLoginProcess(ExternalProcess targetProcess,
boolean exitAfterCommand)
- Creates a new RloginProcess
- Parameters:
targetProcess
- The target process associated to this process. The target process
represents the process that will be launched after logging remote host with rloginexitAfterCommand
- If true the process will finished once rlogin command is performed. The default value is false
getProcessId
public java.lang.String getProcessId()
- Description copied from interface:
UniversalProcess
- Returns the id of the process
- Returns:
- the id of the process. This id is just the first letters of the process
class, to be able to identify the sequence of processes used
- See Also:
UniversalProcess.getProcessId()
getNodeNumber
public int getNodeNumber()
- Description copied from interface:
UniversalProcess
- Returns the number of nodes targeted
- Returns:
- the number of nodes targeted. Represents the number of nodes expected to use
when starting this process. If this number cannot be known, waiting for all available nodes
for example, UNKNOWN_NODE_NUMBER is returned.
- See Also:
UniversalProcess.getNodeNumber()
getFinalProcess
public UniversalProcess getFinalProcess()
- Description copied from interface:
UniversalProcess
- Returns the last process of the chain
- Returns:
- the last process of the chain
- See Also:
UniversalProcess.getFinalProcess()
setExitAfterCommand
public void setExitAfterCommand(boolean b)
- Method setExitAfterCommand
- Parameters:
b
- If true the process will finished once rlogin command is performed. The default vaule is false
getExitAfterCommand
public boolean getExitAfterCommand()
- Returns the value of the boolean telling that the process will finished after rlogin command or will wait
for another command to be pushed once logging on the remote host
- Returns:
- boolean
main
public static void main(java.lang.String[] args)
internalBuildCommand
protected java.lang.String internalBuildCommand()
- Specified by:
internalBuildCommand
in class AbstractExternalProcessDecorator
buildRLoginCommand
protected java.lang.String buildRLoginCommand()
internalStartProcess
protected void internalStartProcess(java.lang.String command)
throws java.io.IOException
- Overrides:
internalStartProcess
in class AbstractExternalProcessDecorator
- Throws:
java.io.IOException
Copyright 2001-2005 INRIA All Rights Reserved.