org.globus.cog.gridshell.tasks
Class AbstractFileOperationTask

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
              extended byorg.globus.cog.gridshell.tasks.AbstractFileOperationTask
All Implemented Interfaces:
ExecutableObject, Task
Direct Known Subclasses:
CdTask, ChmodTask, ExistsTask, GetdirTask, GetfileTask, IsDirectoryTask, LsTask, MkdirTask, PutdirTask, PutfileTask, PwdTask, RenameTask, RmdirTask, RmFileTask, StopTask

public abstract class AbstractFileOperationTask
extends AbstractFileTask

This is a super class for any non-START file operation task. Allows information for the task to be gotten from the START task.


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
AbstractFileOperationTask(StartTask connection, String[] arguments)
           
 
Method Summary
 int getPort()
           
 String getProvider()
           
 String getServiceContact()
           
 Identity getSessionId()
           
 TaskHandler getTaskHandler()
           
 void initTask()
           
 
Methods inherited from class org.globus.cog.gridshell.tasks.AbstractFileTask
createTaskHandler, getArguments, getOperation, getResult, setArguments
 
Methods inherited from class org.globus.cog.gridshell.tasks.AbstractTask
addScopeStatusListener, 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

AbstractFileOperationTask

public AbstractFileOperationTask(StartTask connection,
                                 String[] arguments)
                          throws InvalidProviderException,
                                 ProviderMethodException
Method Detail

initTask

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

getProvider

public String getProvider()
Specified by:
getProvider in interface Task
Specified by:
getProvider in class AbstractTask

getServiceContact

public String getServiceContact()
Specified by:
getServiceContact in class AbstractTask

getSessionId

public Identity getSessionId()
Specified by:
getSessionId in class AbstractFileTask

getTaskHandler

public TaskHandler getTaskHandler()
Specified by:
getTaskHandler in class AbstractTask

getPort

public int getPort()
Specified by:
getPort in class AbstractFileTask