Class TransferJobUtil.JobExecutor
- java.lang.Object
-
- unlimited.fc.client.api.multiclient.transferJob.TransferJobUtil.JobExecutor
-
- All Implemented Interfaces:
JobHandler
- Enclosing class:
- TransferJobUtil
public static class TransferJobUtil.JobExecutor extends java.lang.Object implements JobHandler
Inner class that is responsible for executing TransferJobs that have been provided to it
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface unlimited.fc.client.api.multiclient.transferJob.JobHandler
JobHandler.Adapter, JobHandler.Builder
-
-
Constructor Summary
Constructors Constructor Description JobExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ExceptiongetFailureReason()Returns the failure reason for the TransferJob if it failedTransferHookgetHook()Gets the transfer hook containing the data for the TransferJob that was executedvoidhandleJob(DownloadAsJob job, FileTransferMechanism client)Handle job.voidhandleJob(DownloadJob job, FileTransferMechanism client)Handle job.voidhandleJob(RemoteUploadJob job, FileTransferMechanism client)Handle job.voidhandleJob(UploadAsJob job, FileTransferMechanism client)Handle job.voidhandleJob(UploadJob job, FileTransferMechanism client)Handle job.
-
-
-
Method Detail
-
getHook
public TransferHook getHook()
Gets the transfer hook containing the data for the TransferJob that was executed- Returns:
- Hook containing the data
-
getFailureReason
public java.lang.Exception getFailureReason()
Returns the failure reason for the TransferJob if it failed- Returns:
- Reason for failure
-
handleJob
public void handleJob(DownloadJob job, FileTransferMechanism client)
Description copied from interface:JobHandlerHandle job.- Specified by:
handleJobin interfaceJobHandler- Parameters:
job- the jobclient- the client
-
handleJob
public void handleJob(UploadJob job, FileTransferMechanism client)
Description copied from interface:JobHandlerHandle job.- Specified by:
handleJobin interfaceJobHandler- Parameters:
job- the jobclient- the client
-
handleJob
public void handleJob(RemoteUploadJob job, FileTransferMechanism client)
Description copied from interface:JobHandlerHandle job.- Specified by:
handleJobin interfaceJobHandler- Parameters:
job- the jobclient- the client
-
handleJob
public void handleJob(UploadAsJob job, FileTransferMechanism client)
Description copied from interface:JobHandlerHandle job.- Specified by:
handleJobin interfaceJobHandler- Parameters:
job- the jobclient- the client
-
handleJob
public void handleJob(DownloadAsJob job, FileTransferMechanism client)
Description copied from interface:JobHandlerHandle job.- Specified by:
handleJobin interfaceJobHandler- Parameters:
job- the jobclient- the client
-
-