org.objectweb.proactive.core.process.nordugrid
Class NGProcess

java.lang.Object
  extended byorg.objectweb.proactive.core.process.AbstractUniversalProcess
      extended byorg.objectweb.proactive.core.process.AbstractExternalProcess
          extended byorg.objectweb.proactive.core.process.AbstractExternalProcessDecorator
              extended byorg.objectweb.proactive.core.process.nordugrid.NGProcess
All Implemented Interfaces:
ExternalProcess, ExternalProcessDecorator, java.io.Serializable, UniversalProcess

public class NGProcess
extends AbstractExternalProcessDecorator

NorduGrid Process implementation. This implementation works only for ProActive deployment, and not to submit single commands

Since:
ProActive 2.3
Version:
1.0, 2005/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.util.ArrayList command_buffer
           
protected  java.lang.String count
           
protected  java.lang.String DEFAULT_INPUT_FILE
           
static java.lang.String DEFAULT_NGPATH
           
protected  java.lang.String executable_path
           
protected  java.lang.String inputFiles
           
protected  java.lang.String jobname
           
protected  java.lang.String queue
           
protected  java.lang.String stderr
           
protected  java.lang.String stdout
           
protected  java.lang.String tmp_executable
           
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
targetProcess
 
Fields inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess
clogger, closeStream, errorMessageLogger, externalProcess, FILE_TRANSFER_DEFAULT_PROTOCOL, fileTransferLogger, inputMessageLogger, IS_WINDOWS_SYSTEM, NO_COMPOSITION, outputMessageSink
 
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
 
Fields inherited from interface org.objectweb.proactive.core.process.ExternalProcessDecorator
APPEND_TO_COMMAND_COMPOSITION, COPY_FILE_AND_APPEND_COMMAND, GIVE_COMMAND_AS_PARAMETER, SEND_TO_OUTPUT_STREAM_COMPOSITION
 
Fields inherited from interface org.objectweb.proactive.core.process.UniversalProcess
logger, UNKNOWN_NODE_NUMBER
 
Constructor Summary
NGProcess()
          Creates a new instance of NGProcess
 
Method Summary
 UniversalProcess getFinalProcess()
          Returns the last process of the chain
 int getNodeNumber()
          Returns the number of nodes targeted
 java.lang.String getProcessId()
          Returns the id of the process
protected  java.lang.String internalBuildCommand()
           
protected  boolean internalFileTransferDefaultProtocol()
          This method should be redefined on every protocol that internaly implements the file transfer.
protected  void internalStartProcess(java.lang.String xRslCommand)
           
static void main(java.lang.String[] args)
           
 void setCount(java.lang.String count)
           
 void setExecutable(java.lang.String exec)
           
 void setJobname(java.lang.String jobname)
           
 void setQueue(java.lang.String queue)
           
 void setStderr(java.lang.String stderr)
           
 void setStdout(java.lang.String stdout)
           
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcessDecorator
buildCommand, getCompositionType, getTargetProcess, handleCopyFile, handleOutput, setCompositionType, setTargetProcess, toString
 
Methods inherited from class org.objectweb.proactive.core.process.AbstractExternalProcess
buildEnvironmentCommand, buildUnixEnvironmentCommand, buildWindowsEnvironmentCommand, closeStream, getErrorMessageLogger, getFileTransferDefaultCopyProtocol, getFileTransferWorkShopDeploy, getFileTransferWorkShopRetrieve, getInputMessageLogger, getOutputMessageSink, handleError, handleInput, handleProcess, 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.ExternalProcess
closeStream, getErrorMessageLogger, getFileTransferWorkShopDeploy, getFileTransferWorkShopRetrieve, getInputMessageLogger, getOutputMessageSink, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink
 
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
 

Field Detail

DEFAULT_NGPATH

public static final java.lang.String DEFAULT_NGPATH
See Also:
Constant Field Values

count

protected java.lang.String count

stderr

protected java.lang.String stderr

stdout

protected java.lang.String stdout

queue

protected java.lang.String queue

jobname

protected java.lang.String jobname

executable_path

protected java.lang.String executable_path

tmp_executable

protected java.lang.String tmp_executable

DEFAULT_INPUT_FILE

protected java.lang.String DEFAULT_INPUT_FILE

inputFiles

protected java.lang.String inputFiles

command_buffer

protected java.util.ArrayList command_buffer
Constructor Detail

NGProcess

public NGProcess()
Creates a new instance of NGProcess

Method Detail

setCount

public void setCount(java.lang.String count)

setQueue

public void setQueue(java.lang.String queue)

setStderr

public void setStderr(java.lang.String stderr)

setStdout

public void setStdout(java.lang.String stdout)

setJobname

public void setJobname(java.lang.String jobname)

internalBuildCommand

protected java.lang.String internalBuildCommand()
Specified by:
internalBuildCommand in class AbstractExternalProcessDecorator

internalStartProcess

protected void internalStartProcess(java.lang.String xRslCommand)
                             throws java.io.IOException
Overrides:
internalStartProcess in class AbstractExternalProcessDecorator
Throws:
java.io.IOException

internalFileTransferDefaultProtocol

protected boolean internalFileTransferDefaultProtocol()
Description copied from class: AbstractExternalProcess
This method should be redefined on every protocol that internaly implements the file transfer. Ex: Unicore

Overrides:
internalFileTransferDefaultProtocol in class AbstractExternalProcess
Returns:
true if and only if successful.

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

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.

getFinalProcess

public UniversalProcess getFinalProcess()
Description copied from interface: UniversalProcess
Returns the last process of the chain

Returns:
the last process of the chain

main

public static void main(java.lang.String[] args)
Parameters:
args -

setExecutable

public void setExecutable(java.lang.String exec)


Copyright 2001-2005 INRIA All Rights Reserved.