Package org.apache.sshd.scp.client
Interface ScpRemote2RemoteTransferListener
-
public interface ScpRemote2RemoteTransferListener- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendDirectDirectoryTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, Throwable thrown)Indicates end of direct file transfervoidendDirectFileTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, Throwable thrown)Indicates end of direct file transfervoidstartDirectDirectoryTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details)Indicates start of direct directory transfervoidstartDirectFileTransfer(ClientSession srcSession, String source, ClientSession dstSession, String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details)Indicates start of direct file transfer
-
-
-
Method Detail
-
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 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(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 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(ClientSession srcSession, String source, 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(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 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
-
-