Represents transferred bytes and elapsed time.
| Type | Name and description |
|---|---|
long |
lastCheckPointTimeTimestamp in milliseconds when the last checkpoint is committed. |
long |
maxSizeEstimated bytes to transfer. |
long |
startedTimeTimestamp in milliseconds when transfer is started. |
long |
transferredSizeActually transferred bytes. |
| Type | Name and description |
|---|---|
void |
checkPoint()Commit a checkpoint. |
static long |
currentTime() |
long |
getElapsedTime()Return elapsed time in milliseconds from started |
long |
getElapsedTimeFromCheckPoint()Return elapsed time in milliseconds from the last checkpoint |
double |
getKiloBytesPerSecond()Return transfer rate in kbps. |
double |
getPercent()Return percent of transferred data. |
Status |
leftShift(long size)Report the progress that data has been transferred. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Timestamp in milliseconds when the last checkpoint is committed.
Estimated bytes to transfer.
Timestamp in milliseconds when transfer is started.
Actually transferred bytes.
Commit a checkpoint.
Return elapsed time in milliseconds from started
Return elapsed time in milliseconds from the last checkpoint
Return transfer rate in kbps.
Return percent of transferred data.
Report the progress that data has been transferred.
size - transferred size in bytes