|
SmartSync 1.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--li.netcat.smartsync.TransferProgress
Immutable class that represents the current transfer progress of the synchronization. Negative values of properties must be interpreted as unknown.
| Constructor Summary | |
TransferProgress(int totalFiles,
int completedFiles,
long totalTraffic,
long completedTraffic,
long transferRate,
int remainingTime)
Constructs and initializes a new instance of a TransferProgress object. |
|
| Method Summary | |
int |
getCompletedFiles()
Returns the number of completed files that caused network traffic. |
long |
getCompletedTraffic()
Returns the completed traffic in byte. |
float |
getProgress()
Returns the overall progress |
int |
getRemainingFiles()
Returns the number of remaining files that will cause network traffic. |
int |
getRemainingTime()
Returns the estimated remaining time to complete all tasks measured in sec. |
long |
getRemainingTraffic()
Returns the remining traffic in byte. |
int |
getTotalFiles()
Returns the total number of files that cause network traffic. |
long |
getTotalTraffic()
Returns the total amount of traffic in byte. |
long |
getTransferRate()
Returns the estimated transferrate measured in bit/s. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransferProgress(int totalFiles,
int completedFiles,
long totalTraffic,
long completedTraffic,
long transferRate,
int remainingTime)
TransferProgress object.totalFiles - The total number of files that cause network traffic.completedFiles - The number of completed files that caused network traffic.totalTraffic - The total amount of traffic in byte.completedTraffic - The completed traffic in byte.transferRate - The estimated transferrate measured in bit/s.remainingTime - The estimated remaining time to complete all tasks measured in sec.| Method Detail |
public int getTotalFiles()
public int getCompletedFiles()
public int getRemainingFiles()
public long getTotalTraffic()
public long getCompletedTraffic()
public long getRemainingTraffic()
public long getTransferRate()
public int getRemainingTime()
public float getProgress()
|
SmartSync 1.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||