Is there a way to request upload status? #68

Closed
mc85 opened this Issue Apr 9, 2012 · 3 comments

Projects

None yet

2 participants

@mc85
mc85 commented Apr 9, 2012

There isn't an example available showing how to get the upload status from the transfer listener in an sftp or scp transfer aside from looking at the log. I'm currently dispatching the upload and then trying to query the status in a timer every second but there is no documentation that shows how to do this or something similar.

mc85 commented Apr 20, 2012

Maybe change this to request for an example with this?

Contributor
shikhar commented Apr 21, 2012

Hi, sorry there isn't an example for this. Basically you would have to implement this interface: http://schmizz.net/sshj/javadoc/0.7.0/net/schmizz/sshj/xfer/TransferListener.html

The default implementation is the logging one.

You can supply your impl to SCPFileTransfer or SFTPFileTransfer with a setter.

@shikhar shikhar closed this Apr 21, 2012
Contributor
shikhar commented Apr 21, 2012

Note - the interface has changed and improved in 0.8.0-SNAPSHOT (to be released...)

bc59c81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment