org.objectweb.proactive.core.process
Class SimpleExternalProcess
java.lang.Object
|
+--org.objectweb.proactive.core.process.AbstractUniversalProcess
|
+--org.objectweb.proactive.core.process.AbstractExternalProcess
|
+--org.objectweb.proactive.core.process.SimpleExternalProcess
- All Implemented Interfaces:
- ExternalProcess, java.io.Serializable, UniversalProcess
- public class SimpleExternalProcess
- extends AbstractExternalProcess
The SimpleExternalProcess class is able to start any command line
For instance
..............
SimpleExternalProcess p = new SimpleExternalProcess("ls -la");
..............
The previous piece of code will run locally the command "ls -la"
- Since:
- ProActive 0.9.3
- Version:
- 1.0, 2002/06/20
- Author:
- ProActive Team
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.proactive.core.process.AbstractUniversalProcess |
certificateLocation, command, DEFAULT_HOSTNAME, DEFAULT_USERNAME, environment, hostname, isFinished, isStarted, LOCALHOST, privateKeyLocation, securityFile, username |
Method Summary |
protected java.lang.String |
buildCommand()
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess |
buildEnvironmentCommand, buildUnixEnvironmentCommand, buildWindowsEnvironmentCommand, getErrorMessageLogger, getInputMessageLogger, getOutputMessageSink, handleError, handleInput, handleOutput, handleProcess, internalStartProcess, 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, 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 |
getCertificateLocation, getCommand, getEnvironment, getHostname, getPrivateKeyLocation, getSecurityFile, getUsername, isFinished, isStarted, setCertificateLocation, setEnvironment, setHostname, setPrivateKeyLocation, setSecurityFile, setUsername, startProcess, stopProcess, waitFor |
SimpleExternalProcess
public SimpleExternalProcess(java.lang.String targetCommand)
- Creates a new SimpleExternalProcess
- Parameters:
targetCommand
- The command to run
SimpleExternalProcess
public SimpleExternalProcess(MessageLogger messageLogger,
java.lang.String targetCommand)
- Creates a new SimpleExternalProcess
- Parameters:
messageLogger
- The logger that handles input and error stream of this processtargetCommand
- The command to run
SimpleExternalProcess
public SimpleExternalProcess(MessageLogger inputMessageLogger,
MessageLogger errorMessageLogger,
java.lang.String targetCommand)
- Creates a new SimpleExternalProcess
- Parameters:
inputMessageLogger
- The logger that handles input stream of this processerrorMessageLogger
- The logger that handles error stream of this processtargetCommand
- The command to run
main
public static void main(java.lang.String[] args)
buildCommand
protected java.lang.String buildCommand()
- Specified by:
buildCommand
in class AbstractExternalProcess
Copyright © April 2004 INRIA All Rights Reserved.