public interface ScpTransferEventListener extends SshdEventListener
| Modifier and Type | Interface and Description |
|---|---|
static class |
ScpTransferEventListener.FileOperation |
| Modifier and Type | Field and Description |
|---|---|
static ScpTransferEventListener |
EMPTY
An "empty" implementation to be used instead of
nulls |
| Modifier and Type | Method and Description |
|---|---|
default void |
endFileEvent(ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms,
Throwable thrown) |
default void |
endFolderEvent(ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms,
Throwable thrown) |
default void |
startFileEvent(ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms) |
default void |
startFolderEvent(ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms) |
static <L extends ScpTransferEventListener> |
validateListener(L listener) |
validateListenerstatic final ScpTransferEventListener EMPTY
nullsdefault void startFileEvent(ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms) throws IOException
op - The ScpTransferEventListener.FileOperationfile - The local referenced file Pathlength - Size (in bytes) of transferred dataperms - A Set of PosixFilePermissions to be applied
once transfer is completeIOException - If failed to handle the eventdefault void endFileEvent(ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
op - The ScpTransferEventListener.FileOperationfile - The local referenced file Pathlength - Size (in bytes) of transferred dataperms - A Set of PosixFilePermissions to be applied
once transfer is completethrown - The result of the operation attempt - if null then
reception was successfulIOException - If failed to handle the eventdefault void startFolderEvent(ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms) throws IOException
op - The ScpTransferEventListener.FileOperationfile - The local referenced folder Pathperms - A Set of PosixFilePermissions to be applied
once transfer is completeIOException - If failed to handle the eventdefault void endFolderEvent(ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
op - The ScpTransferEventListener.FileOperationfile - The local referenced file Pathperms - A Set of PosixFilePermissions to be applied
once transfer is completethrown - The result of the operation attempt - if null then
reception was successfulIOException - If failed to handle the eventstatic <L extends ScpTransferEventListener> L validateListener(L listener)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.