TransferProgressListener (Java Globus API)
org.globus.io.ftp
Interface TransferProgressListener
- public interface TransferProgressListener
|
Method Summary |
void |
transfer(int transferedBytes,
int totalBytes,
java.lang.String from,
java.lang.String to)
This function is contniuosly called during file transfers. |
void |
transferError(java.lang.String from,
java.lang.String to,
java.lang.Exception exception)
This function is called only when an error occurs. |
transfer
public void transfer(int transferedBytes,
int totalBytes,
java.lang.String from,
java.lang.String to)
- This function is contniuosly called during file transfers.
- Parameters:
transferedBytes - number of bytes currently trasfered
if -1, then performing thrid party transfertotalBytes - number of total bytes to transfer
if -1, the total size in unknown.from - source file/locationto - destination file/location
transferError
public void transferError(java.lang.String from,
java.lang.String to,
java.lang.Exception exception)
- This function is called only when an error occurs.
- Parameters:
from - source file/locationto - destination file/locationexception - the actual error exception