|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.abstraction.impl.fileTransfer.DelegatedFileTransferHandler
| Constructor Summary | |
DelegatedFileTransferHandler()
|
|
| Method Summary | |
void |
cancel()
Cancels the execution of a task that was previously submitted by the DelegatedTaskHandler.submit(Task)method. |
protected FileResource |
getDestinationResource()
|
protected FileResource |
getSourceResource()
|
void |
resume()
Resumes the execution of a task that was previously suspended by the DelegatedTaskHandler.suspend()method. |
void |
run()
|
protected void |
setDestinationResource(FileResource destinationResource)
|
protected void |
setSourceResource(FileResource sourceResource)
|
protected FileResource |
startResource(Service service)
|
protected void |
stopResources()
|
void |
submit(Task task)
This method is responsible for submitting the given Task
to the remote Service in compliance with the appropriate
provider. |
void |
suspend()
Suspends the currently active task. |
void |
transfer(long current,
long total)
|
void |
transferCompleted()
|
void |
transferError(Exception error)
|
protected void |
transferUsingFileResources(Service sourceService,
Service destinationService)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelegatedFileTransferHandler()
| Method Detail |
public void submit(Task task)
throws IllegalSpecException,
InvalidSecurityContextException,
InvalidServiceContactException,
TaskSubmissionException
DelegatedTaskHandlerTask
to the remote Service in compliance with the appropriate
provider. It executes in a seperate thread so that it doesnt block the
submission of other tasks.
submit in interface DelegatedTaskHandlertask - the task to be executed
TaskSubmissionException - when a generic exception occurs prohibiting the submission of
the task.
InvalidServiceContactException - when the ServiceContactof the remote service in
invalid.
IllegalSpecException - when the Specificationdoes not confirm to the type
of the task and the given provider.
InvalidSecurityContextException - when the SecurityContextassociated with the task in
invalid.
public void suspend()
throws InvalidSecurityContextException,
TaskSubmissionException
DelegatedTaskHandlerDelegatedTaskHandler.resume()method
suspend in interface DelegatedTaskHandlerTaskSubmissionException - when generic errors occur
InvalidSecurityContextException - when the SecurityContextassociated with the task is
invalid
public void resume()
throws InvalidSecurityContextException,
TaskSubmissionException
DelegatedTaskHandlerDelegatedTaskHandler.suspend()method.
resume in interface DelegatedTaskHandlerInvalidSecurityContextException - when the SecurityContextassociated with the task is
invalid
TaskSubmissionException - when generic errors occur
public void cancel()
throws InvalidSecurityContextException,
TaskSubmissionException
DelegatedTaskHandlerDelegatedTaskHandler.submit(Task)method. Tasks once canceled
cannot be resumed for execution later.
cancel in interface DelegatedTaskHandlerInvalidSecurityContextException - when the SecurityContextassociated with the task is
invalid
TaskSubmissionException - when generic errors occur
protected void transferUsingFileResources(Service sourceService,
Service destinationService)
throws InvalidServiceContactException,
TaskSubmissionException,
IllegalSpecException
InvalidServiceContactException
TaskSubmissionException
IllegalSpecException
protected FileResource startResource(Service service)
throws InvalidProviderException,
ProviderMethodException,
IllegalHostException,
InvalidSecurityContextException,
GeneralException
InvalidProviderException
ProviderMethodException
IllegalHostException
InvalidSecurityContextException
GeneralExceptionpublic void run()
run in interface Runnableprotected void stopResources()
protected void setDestinationResource(FileResource destinationResource)
protected void setSourceResource(FileResource sourceResource)
protected FileResource getDestinationResource()
protected FileResource getSourceResource()
public void transfer(long current,
long total)
transfer in interface UrlCopyListenerpublic void transferError(Exception error)
transferError in interface UrlCopyListenerpublic void transferCompleted()
transferCompleted in interface UrlCopyListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||