public abstract class AbstractScpTransferEventListenerAdapter extends org.apache.sshd.common.util.logging.AbstractLoggingBean implements ScpTransferEventListener
ScpTransferEventListener for those who wish to implement only a small number of
methods. By default, all non-overridden methods simply log at TRACE level their invocation parametersScpTransferEventListener.FileOperationlogEMPTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScpTransferEventListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
endFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms,
Throwable thrown) |
void |
endFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms,
Throwable thrown) |
void |
startFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms) |
void |
startFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms) |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleFileEventAckInfo, validateListenervalidateListenerprotected AbstractScpTransferEventListenerAdapter()
public void startFileEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms) throws IOException
startFileEvent in interface ScpTransferEventListenersession - The client/server Session through which the transfer is being executedop - 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 eventpublic void endFileEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
endFileEvent in interface ScpTransferEventListenersession - The client/server Session through which the transfer is being executedop - 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 eventpublic void startFolderEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms) throws IOException
startFolderEvent in interface ScpTransferEventListenersession - The client/server Session through which the transfer is being executedop - The ScpTransferEventListener.FileOperationfile - The local referenced folder Pathperms - A Set of PosixFilePermissions to be applied once transfer is completeIOException - If failed to handle the eventpublic void endFolderEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
endFolderEvent in interface ScpTransferEventListenersession - The client/server Session through which the transfer is being executedop - 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 eventCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.