org.globus.cog.abstraction.impl.common.task
Class FileOperationTaskHandler

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.task.FileOperationTaskHandler
All Implemented Interfaces:
TaskHandler
Direct Known Subclasses:
CachingFileOperationTaskHandler

public class FileOperationTaskHandler
extends Object
implements TaskHandler


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.TaskHandler
EXECUTION, FILE_OPERATION, FILE_TRANSFER, GENERIC
 
Constructor Summary
FileOperationTaskHandler()
           
 
Method Summary
 void cancel(Task task)
           
 Collection getActiveTasks()
           
 Collection getAllTasks()
           
 Collection getCanceledTasks()
           
 Collection getCompletedTasks()
           
 Collection getFailedTasks()
           
 Collection getResumedTasks()
           
 Collection getSuspendedTasks()
           
 int getType()
           
 void remove(Task task)
           
 void resume(Task task)
           
 void setType(int type)
           
 void submit(Task task)
           
 void suspend(Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileOperationTaskHandler

public FileOperationTaskHandler()
Method Detail

setType

public void setType(int type)
Specified by:
setType in interface TaskHandler

getType

public int getType()
Specified by:
getType in interface TaskHandler

submit

public void submit(Task task)
            throws IllegalSpecException,
                   InvalidSecurityContextException,
                   InvalidServiceContactException,
                   TaskSubmissionException
Specified by:
submit in interface TaskHandler
Throws:
IllegalSpecException
InvalidSecurityContextException
InvalidServiceContactException
TaskSubmissionException

suspend

public void suspend(Task task)
             throws InvalidSecurityContextException,
                    TaskSubmissionException
Specified by:
suspend in interface TaskHandler
Throws:
InvalidSecurityContextException
TaskSubmissionException

resume

public void resume(Task task)
            throws InvalidSecurityContextException,
                   TaskSubmissionException
Specified by:
resume in interface TaskHandler
Throws:
InvalidSecurityContextException
TaskSubmissionException

cancel

public void cancel(Task task)
            throws InvalidSecurityContextException,
                   TaskSubmissionException
Specified by:
cancel in interface TaskHandler
Throws:
InvalidSecurityContextException
TaskSubmissionException

remove

public void remove(Task task)
            throws ActiveTaskException
Specified by:
remove in interface TaskHandler
Throws:
ActiveTaskException

getAllTasks

public Collection getAllTasks()
Specified by:
getAllTasks in interface TaskHandler

getActiveTasks

public Collection getActiveTasks()
Specified by:
getActiveTasks in interface TaskHandler

getFailedTasks

public Collection getFailedTasks()
Specified by:
getFailedTasks in interface TaskHandler

getCompletedTasks

public Collection getCompletedTasks()
Specified by:
getCompletedTasks in interface TaskHandler

getSuspendedTasks

public Collection getSuspendedTasks()
Specified by:
getSuspendedTasks in interface TaskHandler

getResumedTasks

public Collection getResumedTasks()
Specified by:
getResumedTasks in interface TaskHandler

getCanceledTasks

public Collection getCanceledTasks()
Specified by:
getCanceledTasks in interface TaskHandler