org.objectweb.proactive.core.process.rsh.maprsh
Class MapRshProcess
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.rsh.maprsh.MapRshProcess
- All Implemented Interfaces:
- ExternalProcess, ExternalProcessDecorator, java.io.Serializable, UniversalProcess
- public class MapRshProcess
- extends AbstractExternalProcessDecorator
The MapRshProcess class is able to start any class, of the ProActive library,
using maprsh.
For instance:
..........
JVMProcess process = new JVMProcessImpl(new StandardOutputMessageLogger());
process.setParameters("///toto");
MapRshProcess maprsh = new MapRshProcess(process);
maprsh.setHostname("waha owenii");
maprsh.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, getInputMessageLogger, getOutputMessageSink, handleError, handleInput, handleProcess, internalStopProcess, internalWaitFor, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink |
Methods inherited from class org.objectweb.proactive.core.process.AbstractUniversalProcess |
checkStarted, getCommand, getCommandPath, getEnvironment, getHostname, getUsername, isFinished, isStarted, setCommandPath, setEnvironment, setHostname, setUsername, 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, isStarted, setCommandPath, setEnvironment, setHostname, setUsername, startProcess, stopProcess, waitFor |
scriptLocation
protected java.lang.String scriptLocation
MapRshProcess
public MapRshProcess()
MapRshProcess
public MapRshProcess(ExternalProcess targetProcess)
setParallelization
public void setParallelization(java.lang.String parallelize)
- Set the -n option with the given parameter for the maprsh command
- Parameters:
parallelize
-
getParallelization
public java.lang.String getParallelization()
- Returns the degree of parallelization of maprsh command (value of -n option)
- Returns:
- String
setScriptLocation
public void setScriptLocation(java.lang.String scriptLocation)
- Sets the variable scriptLocation with the given location
- Parameters:
scriptLocation
-
getScriptLocation
public java.lang.String getScriptLocation()
- Returns the value of scriptLocation
- Returns:
- String
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
- 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()
internalBuildCommand
protected java.lang.String internalBuildCommand()
- Specified by:
internalBuildCommand
in class AbstractExternalProcessDecorator
buildMapRshCommand
protected java.lang.String buildMapRshCommand()
main
public static void main(java.lang.String[] args)
Copyright ? April 2005 INRIA All Rights Reserved.