org.globus.cog.abstraction.impl.file
Class CachingDelegatedFileOperationHandler
java.lang.Object
org.globus.cog.abstraction.impl.file.TaskHandlerImpl
org.globus.cog.abstraction.impl.file.CachingDelegatedFileOperationHandler
- All Implemented Interfaces:
- StatusListener, TaskHandler
- public class CachingDelegatedFileOperationHandler
- extends TaskHandlerImpl
| Methods inherited from class org.globus.cog.abstraction.impl.file.TaskHandlerImpl |
addValidCommands, cancel, getActiveTasks, getAllTasks, getCanceledTasks, getCompletedTasks, getFailedTasks, getResumedTasks, getSuspendedTasks, getType, isValidSpecification, remove, resume, setType, statusChanged, submit, suspend |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingDelegatedFileOperationHandler
public CachingDelegatedFileOperationHandler()
submit
public void submit(Task task)
throws IllegalSpecException,
InvalidSecurityContextException,
InvalidServiceContactException,
TaskSubmissionException
- Description copied from class:
TaskHandlerImpl
- submit the task for execution. Synchronized because additions and
deletions are made to the same data resource
- Specified by:
submit in interface TaskHandler- Overrides:
submit in class TaskHandlerImpl
- Throws:
IllegalSpecException
InvalidSecurityContextException
InvalidServiceContactException
TaskSubmissionException
setTaskStatus
protected void setTaskStatus(Task task,
int statusCode,
Exception exception,
String message)
getResource
protected FileResource getResource(Service service)
throws InvalidProviderException,
ProviderMethodException,
IllegalHostException,
InvalidSecurityContextException,
GeneralException
- Throws:
InvalidProviderException
ProviderMethodException
IllegalHostException
InvalidSecurityContextException
GeneralException
stopResources
public void stopResources()
execute
protected Object execute(FileResource fileResource,
FileOperationSpecification spec)
throws DirectoryNotFoundException,
FileNotFoundException,
GeneralException
- Description copied from class:
TaskHandlerImpl
- execute the command on the file resource. Called from submit(Task,
FileResource)
- Overrides:
execute in class TaskHandlerImpl
- Throws:
FileNotFoundException
GeneralException
DirectoryNotFoundException
getResource
protected FileResource getResource()
- Overrides:
getResource in class TaskHandlerImpl