com.amazonaws.services.s3.transfer
Class TransferProgress

java.lang.Object
  extended by com.amazonaws.services.s3.transfer.TransferProgress

public abstract class TransferProgress
extends Object

Describes the progress of a transfer.


Field Summary
protected  long bytesTransferred
           
protected  long totalBytesToTransfer
           
 
Constructor Summary
TransferProgress()
           
 
Method Summary
 long getBytesTransfered()
          Deprecated. Replaced by getBytesTransferred()
 long getBytesTransferred()
          Returns the number of bytes completed in the associated transfer.
 double getPercentTransfered()
          Deprecated. Replaced by getPercentTransferred()
 double getPercentTransferred()
          Returns a percentage of the number of bytes transferred out of the total number of bytes to transfer.
 long getTotalBytesToTransfer()
          Returns the total size in bytes of the associated transfer, or -1 if the total size isn't known.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytesTransferred

protected volatile long bytesTransferred

totalBytesToTransfer

protected volatile long totalBytesToTransfer
Constructor Detail

TransferProgress

public TransferProgress()
Method Detail

getBytesTransfered

public long getBytesTransfered()
Deprecated. Replaced by getBytesTransferred()


getBytesTransferred

public long getBytesTransferred()
Returns the number of bytes completed in the associated transfer.

Returns:
The number of bytes completed in the associated transfer.

getTotalBytesToTransfer

public long getTotalBytesToTransfer()
Returns the total size in bytes of the associated transfer, or -1 if the total size isn't known.

Returns:
The total size in bytes of the associated transfer. Returns or -1 if the total size of the associated transfer isn't known yet.

getPercentTransfered

@Deprecated
public double getPercentTransfered()
Deprecated. Replaced by getPercentTransferred()


getPercentTransferred

public double getPercentTransferred()
Returns a percentage of the number of bytes transferred out of the total number of bytes to transfer.

Returns:
A percentage of the number of bytes transferred out of the total number of bytes to transfer.


Copyright © 2016. All rights reserved.