Package com.sshtools.client.tasks
Class AbstractOptimisedTask.FileTransferProgressWrapper
java.lang.Object
com.sshtools.client.tasks.AbstractOptimisedTask.FileTransferProgressWrapper
- All Implemented Interfaces:
FileTransferProgress
- Enclosing class:
- AbstractOptimisedTask<TARGET,
LOCALFILE>
protected static class AbstractOptimisedTask.FileTransferProgressWrapper
extends Object
implements FileTransferProgress
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FileTransferProgressWrapper
(FileTransferProgress delegate, Optional<FileTransferProgress> overallProgress, AtomicLong total) -
Method Summary
Modifier and TypeMethodDescriptionvoid
The transfer has completed.boolean
The transfer is cancelled.void
progressed
(long bytesSoFar) The transfer has progressedvoid
The transfer has started
-
Constructor Details
-
FileTransferProgressWrapper
protected FileTransferProgressWrapper(FileTransferProgress delegate, Optional<FileTransferProgress> overallProgress, AtomicLong total)
-
-
Method Details
-
started
Description copied from interface:FileTransferProgress
The transfer has started- Specified by:
started
in interfaceFileTransferProgress
-
isCancelled
public boolean isCancelled()Description copied from interface:FileTransferProgress
The transfer is cancelled. Implementations should return true if the user wants to cancel the transfer. The transfer will then be stopped at the next evaluation stage.- Specified by:
isCancelled
in interfaceFileTransferProgress
- Returns:
- boolean
-
progressed
public void progressed(long bytesSoFar) Description copied from interface:FileTransferProgress
The transfer has progressed- Specified by:
progressed
in interfaceFileTransferProgress
-
completed
public void completed()Description copied from interface:FileTransferProgress
The transfer has completed.- Specified by:
completed
in interfaceFileTransferProgress
-