Package org.apache.sshd.scp.client
Interface ScpRemote2RemoteTransferListener
public interface ScpRemote2RemoteTransferListener
- Author:
- Apache MINA SSHD Project
-
Method Summary
Modifier and TypeMethodDescriptionvoidendDirectDirectoryTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, Throwable thrown) Indicates end of direct file transfervoidendDirectFileTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, Throwable thrown) Indicates end of direct file transfervoidstartDirectDirectoryTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details) Indicates start of direct directory transfervoidstartDirectFileTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details) Indicates start of direct file transfer
-
Method Details
-
startDirectFileTransfer
void startDirectFileTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details) throws IOException Indicates start of direct file transfer- Parameters:
srcSession- The sourceClientSessionsource- The source pathdstSession- The destinationClientSessiondestination- The destination pathtimestamp- Thetimestampof the file - may benulldetails- Thedetailsof the attempted file transfer- Throws:
IOException- If failed to handle the callback
-
endDirectFileTransfer
void endDirectFileTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, Throwable thrown) throws IOException Indicates end of direct file transfer- Parameters:
srcSession- The sourceClientSessionsource- The source pathdstSession- The destinationClientSessiondestination- The destination pathtimestamp- Thetimestampof the file - may benulldetails- Thedetailsof the attempted file transferxferSize- Number of successfully transfered bytes - zero if thrown notnullthrown- Error thrown during transfer attempt -nullif successful- Throws:
IOException- If failed to handle the callback
-
startDirectDirectoryTransfer
void startDirectDirectoryTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details) throws IOException Indicates start of direct directory transfer- Parameters:
srcSession- The sourceClientSessionsource- The source pathdstSession- The destinationClientSessiondestination- The destination pathtimestamp- Thetimestampof the directory - may benulldetails- Thedetailsof the attempted directory transfer- Throws:
IOException- If failed to handle the callback
-
endDirectDirectoryTransfer
void endDirectDirectoryTransfer(org.apache.sshd.client.session.ClientSession srcSession, String source, org.apache.sshd.client.session.ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, Throwable thrown) throws IOException Indicates end of direct file transfer- Parameters:
srcSession- The sourceClientSessionsource- The source pathdstSession- The destinationClientSessiondestination- The destination pathtimestamp- Thetimestampof the directory - may benulldetails- Thedetailsof the attempted directory transferthrown- Error thrown during transfer attempt -nullif successful- Throws:
IOException- If failed to handle the callback
-