Package org.apache.sshd.scp.client
Interface ScpRemote2RemoteTransferListener
public interface ScpRemote2RemoteTransferListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endDirectDirectoryTransfer
(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, Throwable thrown) Indicates end of direct file transfervoid
endDirectFileTransfer
(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, Throwable thrown) Indicates end of direct file transfervoid
startDirectDirectoryTransfer
(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details) Indicates start of direct directory transfervoid
startDirectFileTransfer
(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details) Indicates start of direct file transfer
-
Method Details
-
startDirectFileTransfer
void startDirectFileTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details) throws IOException Indicates start of direct file transfer- Parameters:
srcSession
- The sourceClientSession
source
- The source pathdstSession
- The destinationClientSession
destination
- The destination pathtimestamp
- Thetimestamp
of the file - may benull
details
- Thedetails
of the attempted file transfer- Throws:
IOException
- If failed to handle the callback
-
endDirectFileTransfer
void endDirectFileTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, Throwable thrown) throws IOException Indicates end of direct file transfer- Parameters:
srcSession
- The sourceClientSession
source
- The source pathdstSession
- The destinationClientSession
destination
- The destination pathtimestamp
- Thetimestamp
of the file - may benull
details
- Thedetails
of the attempted file transferxferSize
- Number of successfully transfered bytes - zero if thrown notnull
thrown
- Error thrown during transfer attempt -null
if successful- Throws:
IOException
- If failed to handle the callback
-
startDirectDirectoryTransfer
void startDirectDirectoryTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details) throws IOException Indicates start of direct directory transfer- Parameters:
srcSession
- The sourceClientSession
source
- The source pathdstSession
- The destinationClientSession
destination
- The destination pathtimestamp
- Thetimestamp
of the directory - may benull
details
- Thedetails
of the attempted directory transfer- Throws:
IOException
- If failed to handle the callback
-
endDirectDirectoryTransfer
void endDirectDirectoryTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, Throwable thrown) throws IOException Indicates end of direct file transfer- Parameters:
srcSession
- The sourceClientSession
source
- The source pathdstSession
- The destinationClientSession
destination
- The destination pathtimestamp
- Thetimestamp
of the directory - may benull
details
- Thedetails
of the attempted directory transferthrown
- Error thrown during transfer attempt -null
if successful- Throws:
IOException
- If failed to handle the callback
-