org.gridbus.broker.jobdescription.commands
Class ExecuteCommand

java.lang.Object
  extended by org.gridbus.broker.jobdescription.TaskCommand
      extended by org.gridbus.broker.jobdescription.commands.ExecuteCommand

public class ExecuteCommand
extends TaskCommand

Represents the execute command of a run file.

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

Constructor Summary
ExecuteCommand()
           
 
Method Summary
 void addArgument(java.lang.String arg)
          Adds an argument to be used by this executable.
 java.lang.Object clone()
           
 java.util.List getArguments()
          Gets the list of arguments currently set for this executable.
 java.lang.String getCommandLine()
          Builds a command line string, using the executable, and all arguments.
 java.lang.String getExecutable()
          Gets the executable name.
 int getType()
          Gets which type of command this is.
 boolean isRemoteAccess()
           
 void setArguments(java.util.List arguments)
           
 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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecuteCommand

public ExecuteCommand()
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.List 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.

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.

setArguments

public void setArguments(java.util.List arguments)
Parameters:
arguments - The arguments to set.

getCommandLine

public java.lang.String getCommandLine()
Builds a command line string, using the executable, and all arguments. Basically, all the arguments are appended to the executable, in order with a space in between each.

Returns:

getType

public int getType()
Description copied from class: TaskCommand
Gets which type of command this is.

Specified by:
getType in class TaskCommand
Returns:
the type of this command.

clone

public java.lang.Object clone()
Specified by:
clone in class TaskCommand

Copyright © The University of Melbourne. 2006