org.gridbus.broker.runfile
Class TaskCommand

java.lang.Object
  extended by org.gridbus.broker.runfile.TaskCommand
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CopyCommand, ExecuteCommand, GCopyCommand, SubstituteCommand

public abstract class TaskCommand
extends java.lang.Object
implements java.io.Serializable

Parent class for run file commands.

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

Field Summary
static java.lang.String COPY_CMD
           
static java.lang.String EXECUTE_CMD
           
static java.lang.String GCOPY_CMD
           
static java.lang.String MCOPY_CMD
           
static java.lang.String REMOTE_EXECUTE_CMD
           
static java.lang.String SUBSTITUTE_CMD
           
static java.lang.String TEST_CMD
           
static java.lang.String UNKNOWN_CMD
           
 
Constructor Summary
TaskCommand(java.lang.String type)
          Constructs a command of a given type.
 
Method Summary
static java.lang.String findType(java.lang.String token)
          Finds which type of command is represented by the given String.
 java.lang.String getType()
          Gets which type of command this is.
 void setType(java.lang.String type)
          Sets which type this command is
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MCOPY_CMD

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

GCOPY_CMD

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

COPY_CMD

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

EXECUTE_CMD

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

REMOTE_EXECUTE_CMD

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

UNKNOWN_CMD

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

SUBSTITUTE_CMD

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

TEST_CMD

public static final java.lang.String TEST_CMD
See Also:
Constant Field Values
Constructor Detail

TaskCommand

public TaskCommand(java.lang.String type)
Constructs a command of a given type.

Parameters:
type - the command type.
Method Detail

setType

public void setType(java.lang.String type)
Sets which type this command is

Parameters:
type - the command type.

getType

public java.lang.String getType()
Gets which type of command this is.

Returns:
the type of this command.

findType

public static java.lang.String findType(java.lang.String token)
Finds which type of command is represented by the given String.

Parameters:
token - command name
Returns:
type of command.

toString

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