org.globus.cog.abstraction.impl.file
Class CachingDelegatedFileOperationHandler

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.file.TaskHandlerImpl
      extended byorg.globus.cog.abstraction.impl.file.CachingDelegatedFileOperationHandler
All Implemented Interfaces:
StatusListener, TaskHandler

public class CachingDelegatedFileOperationHandler
extends TaskHandlerImpl


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.TaskHandler
EXECUTION, FILE_OPERATION, FILE_TRANSFER, GENERIC
 
Constructor Summary
CachingDelegatedFileOperationHandler()
           
 
Method Summary
protected  Object execute(FileResource fileResource, FileOperationSpecification spec)
          execute the command on the file resource.
protected  FileResource getResource()
           
protected  FileResource getResource(Service service)
           
protected  void setTaskStatus(Task task, int statusCode, Exception exception, String message)
           
 void stopResources()
           
 void submit(Task task)
          submit the task for execution.
 
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
 

Constructor Detail

CachingDelegatedFileOperationHandler

public CachingDelegatedFileOperationHandler()
Method Detail

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