org.gridbus.broker.runfile
Class ExecuteCommand

java.lang.Object
  extended byorg.gridbus.broker.runfile.TaskCommand
      extended byorg.gridbus.broker.runfile.ExecuteCommand

public class ExecuteCommand
extends TaskCommand

Represents the execute command of a run file.

Author:
Hussein Gibbins (hag@cs.mu.oz.au)

Field Summary
 
Fields inherited from class org.gridbus.broker.runfile.TaskCommand
COPY_CMD, EXECUTE_CMD, GCOPY_CMD, MCOPY_CMD, REMOTE_EXECUTE_CMD, SUBSTITUTE_CMD, UNKNOWN_CMD
 
Constructor Summary
ExecuteCommand()
           
ExecuteCommand(java.lang.String type)
          Constructs an ExecuteCommand and sets its command type.
 
Method Summary
 void addArgument(java.lang.String arg)
          Adds an argument to be used by this executable.
 java.util.Vector getArguments()
          Gets the list of arguments currently set for this executable.
 java.lang.String getExecutable()
          Gets the executable name.
 boolean isRemote()
          Checks whether the executable is remote.
 void setExecutable(java.lang.String executable)
          Sets the executable name for this executable command.
 
Methods inherited from class org.gridbus.broker.runfile.TaskCommand
findType, getType, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteCommand

public ExecuteCommand()

ExecuteCommand

public ExecuteCommand(java.lang.String type)
Constructs an ExecuteCommand and sets its command type.

Parameters:
type -
Method Detail

addArgument

public void addArgument(java.lang.String arg)
Adds an argument to be used by this executable. Arguments need to be added in the order in which they will be expected by the executable.

Parameters:
arg - the value of the argument.

getArguments

public java.util.Vector getArguments()
Gets the list of arguments currently set for this executable.

Returns:
list of arguments.

setExecutable

public void setExecutable(java.lang.String executable)
Sets the executable name for this executable command.

Parameters:
executable - the name of the executable.

getExecutable

public java.lang.String getExecutable()
Gets the executable name.

Returns:
executable name.

isRemote

public boolean isRemote()
Checks whether the executable is remote. note: Currently not used.

Returns:
whether the executable is remote.