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.
 

Method Detail

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 transfer
totalBytes - number of total bytes to transfer if -1, the total size in unknown.
from - source file/location
to - 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/location
to - destination file/location
exception - the actual error exception