org.globus.cog.gridface.impl.commands
Class EXECCommandImpl

java.lang.Object
  extended byorg.globus.cog.gridface.impl.commands.GridCommandImpl
      extended byorg.globus.cog.gridface.impl.commands.EXECCommandImpl
All Implemented Interfaces:
ExecutableObject, GridCommand, StatusListener

public class EXECCommandImpl
extends GridCommandImpl
implements GridCommand


Field Summary
 
Fields inherited from class org.globus.cog.gridface.impl.commands.GridCommandImpl
task
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject
TASK, TASKGRAPH
 
Constructor Summary
EXECCommandImpl()
           
 
Method Summary
 Exception getException()
          add labels to the jglobus error codes
static String getMessageFromErrorCode(String errorCodeMessage)
           
 Object getOutput()
          Get output of the given command when status changes to COMPLETED
 ExecutableObject prepareTask()
          prepare the executable object for this command
static HashMap reflectFieldsValuesAsKeys(String className)
          gets field names and the values from a specific class and returns as hash where field names are values and the values are keys
 boolean validate()
          validate the given command and return true or false
 
Methods inherited from class org.globus.cog.gridface.impl.commands.GridCommandImpl
addArgument, addStatusListener, getArgument, getArguments, getArgumentsSize, getAttribute, getAttributes, getCommand, getCompletedTime, getError, getExceptionString, getId, getIdentity, getName, getObjectType, getStatus, getStatusListeners, getSubmittedTime, getTask, getTaskAttribute, prepareFileOperationTask, prepareFileTransferTask, prepareJobSubmissionTask, removeStatusListener, setArguments, setAttribute, setAttributes, setCommand, setIdentity, setName, setStatus, setStatus, setTask, setTaskAttribute, statusChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.cog.gridface.interfaces.GridCommand
addArgument, addStatusListener, getArgument, getArguments, getArgumentsSize, getAttribute, getAttributes, getCommand, getCompletedTime, getError, getExceptionString, getId, getStatusListeners, getSubmittedTime, getTask, getTaskAttribute, removeStatusListener, setArguments, setAttribute, setAttributes, setCommand, setTask, setTaskAttribute
 
Methods inherited from interface org.globus.cog.abstraction.interfaces.StatusListener
statusChanged
 
Methods inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject
getIdentity, getName, getObjectType, getStatus, setIdentity, setName, setStatus, setStatus
 

Constructor Detail

EXECCommandImpl

public EXECCommandImpl()
Method Detail

prepareTask

public ExecutableObject prepareTask()
                             throws Exception
Description copied from interface: GridCommand
prepare the executable object for this command

Specified by:
prepareTask in interface GridCommand
Throws:
Exception

validate

public boolean validate()
Description copied from interface: GridCommand
validate the given command and return true or false

Specified by:
validate in interface GridCommand
Overrides:
validate in class GridCommandImpl

getOutput

public Object getOutput()
Description copied from interface: GridCommand
Get output of the given command when status changes to COMPLETED

Specified by:
getOutput in interface GridCommand

reflectFieldsValuesAsKeys

public static HashMap reflectFieldsValuesAsKeys(String className)
                                         throws Exception
gets field names and the values from a specific class and returns as hash where field names are values and the values are keys

Parameters:
className -
Returns:
Throws:
Exception

getMessageFromErrorCode

public static String getMessageFromErrorCode(String errorCodeMessage)
                                      throws Exception
Throws:
Exception

getException

public Exception getException()
add labels to the jglobus error codes

Specified by:
getException in interface GridCommand
Overrides:
getException in class GridCommandImpl