org.globus.cog.gridshell.tasks
Class LsTask

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
                  extended byorg.globus.cog.gridshell.tasks.LsTask
All Implemented Interfaces:
ExecutableObject, Task

public class LsTask
extends AbstractFileOperationTask

Creates a task that list the contents of a directory


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
LsTask(StartTask connection)
          A task that lists the current directory
LsTask(StartTask connection, String dir)
          Creates a task to list a directories contents
 
Method Summary
 String getOperation()
           
 
Methods inherited from class org.globus.cog.gridshell.tasks.AbstractFileOperationTask
getPort, getProvider, getServiceContact, getSessionId, getTaskHandler, initTask
 
Methods inherited from class org.globus.cog.gridshell.tasks.AbstractFileTask
createTaskHandler, getArguments, 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

LsTask

public LsTask(StartTask connection)
       throws InvalidProviderException,
              ProviderMethodException
A task that lists the current directory

Parameters:
connection -
Throws:
InvalidProviderException
ProviderMethodException

LsTask

public LsTask(StartTask connection,
              String dir)
       throws InvalidProviderException,
              ProviderMethodException
Creates a task to list a directories contents

Parameters:
connection -
dir -
Throws:
InvalidProviderException
ProviderMethodException
Method Detail

getOperation

public String getOperation()
Specified by:
getOperation in class AbstractFileTask