org.objectweb.proactive.core.process.lsf
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.lsf.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

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.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
RLoginProcess()
          Creates a new RloginProcess Used with XML Descriptors
RLoginProcess(ExternalProcess targetProcess)
          Creates a new RloginProcess
RLoginProcess(ExternalProcess targetProcess, boolean exitAfterCommand)
          Creates a new RloginProcess
 
Method Summary
protected  java.lang.String buildRLoginCommand()
           
 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
protected  java.lang.String internalBuildCommand()
           
protected  void internalStartProcess(java.lang.String command)
           
static void main(java.lang.String[] args)
           
 void setExitAfterCommand(boolean b)
          Method setExitAfterCommand
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
buildCommand, getCompositionType, getTargetProcess, handleOutput, 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
 

Constructor Detail

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 rlogin
exitAfterCommand - If true the process will finished once rlogin command is performed. The default value is false
Method Detail

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
java.io.IOException


Copyright © April 2004 INRIA All Rights Reserved.