org.gridbus.broker.runfile
Class ExecuteCommand

java.lang.Object
  extended by org.gridbus.broker.runfile.TaskCommand
      extended by org.gridbus.broker.runfile.ExecuteCommand
All Implemented Interfaces:
java.io.Serializable

public class ExecuteCommand
extends TaskCommand

Represents the execute command of a run file.

Author:
Hussein Gibbins (hag@cs.mu.oz.au)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.gridbus.broker.runfile.TaskCommand
COPY_CMD, EXECUTE_CMD, GCOPY_CMD, MCOPY_CMD, REMOTE_EXECUTE_CMD, SUBSTITUTE_CMD, TEST_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.
 boolean isRemoteAccess()
           
 void setExecutable(java.lang.String executable)
          Sets the executable name for this executable command.
 void setRemoteAccess(boolean remoteAccess)
           
 java.lang.String toString()
           
 
Methods inherited from class org.gridbus.broker.runfile.TaskCommand
findType, getType, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, 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.

toString

public java.lang.String toString()
Overrides:
toString in class TaskCommand
See Also:
Object.toString()

isRemoteAccess

public boolean isRemoteAccess()
Returns:
Returns the remoteAccess.

setRemoteAccess

public void setRemoteAccess(boolean remoteAccess)
Parameters:
remoteAccess - The remoteAccess to set.