org.globus.cog.gridshell.tasks
Class AbstractFileTask

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.task.TaskImpl
      extended byorg.globus.cog.gridshell.tasks.AbstractTask
          extended byorg.globus.cog.gridshell.tasks.AbstractFileTask
All Implemented Interfaces:
ExecutableObject, Task
Direct Known Subclasses:
AbstractFileOperationTask, StartTask

public abstract class AbstractFileTask
extends AbstractTask

This class is any sort of file operation


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.Task
FILE_OPERATION, FILE_TRANSFER, INFORMATION_QUERY, JOB_SUBMISSION
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.ExecutableObject
TASK, TASKGRAPH
 
Constructor Summary
AbstractFileTask(String[] arguments)
           
AbstractFileTask(String taskName, String[] arguments)
           
 
Method Summary
 TaskHandler createTaskHandler()
           
 String[] getArguments()
           
abstract  String getOperation()
           
abstract  int getPort()
           
 Object getResult()
           
abstract  Identity getSessionId()
           
 void initTask()
           
 void setArguments(String[] arguments)
           
 
Methods inherited from class org.globus.cog.gridshell.tasks.AbstractTask
addScopeStatusListener, getProvider, getServiceContact, getTaskHandler, isLocked, notifyAllLock, submitAndWait, submitTask
 
Methods inherited from class org.globus.cog.abstraction.impl.common.task.TaskImpl
addOutputListener, addService, addStatusListener, equals, getAllAttributes, getAllServices, getAttribute, getCompletedTime, getIdentity, getName, getObjectType, getRequiredServices, getService, getSpecification, getStatus, getStdError, getStdOutput, getSubmittedTime, getType, hashCode, isActive, isCanceled, isCompleted, isFailed, isSuspended, isUnsubmitted, removeAllServices, removeOutputListener, removeService, removeService, removeStatusListener, setAttribute, setIdentity, setName, setProvider, setRequiredService, setService, setSpecification, setStatus, setStatus, setStdError, setStdOutput, setType, toString, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractFileTask

public AbstractFileTask(String[] arguments)
                 throws InvalidProviderException,
                        ProviderMethodException

AbstractFileTask

public AbstractFileTask(String taskName,
                        String[] arguments)
                 throws InvalidProviderException,
                        ProviderMethodException
Method Detail

getOperation

public abstract String getOperation()

getSessionId

public abstract Identity getSessionId()

getPort

public abstract int getPort()

createTaskHandler

public TaskHandler createTaskHandler()
                              throws InvalidProviderException,
                                     ProviderMethodException
Throws:
InvalidProviderException
ProviderMethodException

getArguments

public String[] getArguments()

setArguments

public void setArguments(String[] arguments)

initTask

public void initTask()
              throws InvalidProviderException,
                     ProviderMethodException
Overrides:
initTask in class AbstractTask
Throws:
InvalidProviderException
ProviderMethodException

getResult

public Object getResult()
Specified by:
getResult in class AbstractTask