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

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
protected  java.lang.String scriptLocation
           
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
targetProcess
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess
clogger, errorMessageLogger, externalProcess, inputMessageLogger, IS_WINDOWS_SYSTEM, outputMessageSink
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractUniversalProcess
certificateLocation, command, 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, GIVE_COMMAND_AS_PARAMETER, SEND_TO_OUTPUT_STREAM_COMPOSITION
 
Fields inherited from interface org.objectweb.proactive.core.process.UniversalProcess
logger
 
Constructor Summary
MapRshProcess()
           
MapRshProcess(ExternalProcess targetProcess)
           
 
Method Summary
protected  java.lang.String buildMapRshCommand()
           
 java.lang.String getParallelization()
          Returns the degree of parallelization of maprsh command (value of -n option)
 java.lang.String getScriptLocation()
          Returns the value of scriptLocation
protected  java.lang.String internalBuildCommand()
           
static void main(java.lang.String[] args)
           
 void setParallelization(java.lang.String parallelize)
          Set the -n option with the given parameter for the maprsh command
 void setScriptLocation(java.lang.String scriptLocation)
          Sets the variable scriptLocation with the given location
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
buildCommand, getCompositionType, getTargetProcess, handleOutput, internalStartProcess, setCompositionType, setTargetProcess, toString
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess
buildEnvironmentCommand, buildUnixEnvironmentCommand, buildWindowsEnvironmentCommand, getErrorMessageLogger, getInputMessageLogger, getOutputMessageSink, handleError, handleInput, handleProcess, internalStopProcess, internalWaitFor, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractUniversalProcess
checkStarted, getCertificateLocation, getCommand, getEnvironment, getHostname, getPrivateKeyLocation, getSecurityFile, getUsername, isFinished, isStarted, setCertificateLocation, setEnvironment, setHostname, setPrivateKeyLocation, setSecurityFile, 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.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

scriptLocation

protected java.lang.String scriptLocation
Constructor Detail

MapRshProcess

public MapRshProcess()

MapRshProcess

public MapRshProcess(ExternalProcess targetProcess)
Method Detail

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


getScriptLocation

public java.lang.String getScriptLocation()
Returns the value of scriptLocation

Returns:
String

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 2004 INRIA All Rights Reserved.