Package org.apache.sshd.scp.client
Interface ScpRemote2RemoteTransferListener
-
public interface ScpRemote2RemoteTransferListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endDirectDirectoryTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, java.lang.Throwable thrown)
Indicates end of direct file transfervoid
endDirectFileTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, java.lang.Throwable thrown)
Indicates end of direct file transfervoid
startDirectDirectoryTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details)
Indicates start of direct directory transfervoid
startDirectFileTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details)
Indicates start of direct file transfer
-
-
-
Method Detail
-
startDirectFileTransfer
void startDirectFileTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details) throws java.io.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:
java.io.IOException
- If failed to handle the callback
-
endDirectFileTransfer
void endDirectFileTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveFileCommandDetails details, long xferSize, java.lang.Throwable thrown) throws java.io.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:
java.io.IOException
- If failed to handle the callback
-
startDirectDirectoryTransfer
void startDirectDirectoryTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details) throws java.io.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:
java.io.IOException
- If failed to handle the callback
-
endDirectDirectoryTransfer
void endDirectDirectoryTransfer(ClientSession srcSession, java.lang.String source, ClientSession dstSession, java.lang.String destination, ScpTimestampCommandDetails timestamp, ScpReceiveDirCommandDetails details, java.lang.Throwable thrown) throws java.io.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:
java.io.IOException
- If failed to handle the callback
-
-