sam.event
Class ProgressEvent.Statistics

java.lang.Object
  |
  +--sam.event.ProgressEvent.Statistics
Enclosing class:
ProgressEvent

public static class ProgressEvent.Statistics
extends java.lang.Object

Partial statistics


Field Summary
 long achieved
          Number of bytes actually achieved
 long elapsedTimeMilliseconds
          Time elapsed since the beginning
 float encodingRatio
          The ratio between encoded data and plain data
 long limit
          Number of bytes to be achieved
 
Method Summary
 int achievedPercentage()
          Gets the achieved percentage, as an int in the range 0..100 inclusive
 java.lang.String achievedSizeString()
          Gets the number of bytes already achieved in a human-readable format
 java.lang.String getCompressionRatioString()
          Gets the compression ratio in a human-readable format
 java.lang.String getRate()
          Gets the processing rate in a human-readable format
 long getRemainingDuration()
          Gets the estimated remaining duration.
 java.lang.String getRemainingDurationString()
          Gets the estimated remaining duration, as a human-remaining string
 long getTotalDuration()
          Gets the estimated total duration.
 java.lang.String getTotalDurationString()
          Gets the estimated total duration, as a human-readable string
 boolean isAtBeginning()
          Wether this job is finished
 boolean isFinished()
          Wether this job is finished
 java.lang.String limitSizeString()
          Gets the number of bytes already achieved in a human-readable format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

achieved

public final long achieved
Number of bytes actually achieved


limit

public final long limit
Number of bytes to be achieved


elapsedTimeMilliseconds

public final long elapsedTimeMilliseconds
Time elapsed since the beginning


encodingRatio

public final float encodingRatio
The ratio between encoded data and plain data

Method Detail

achievedSizeString

public java.lang.String achievedSizeString()
Gets the number of bytes already achieved in a human-readable format


limitSizeString

public java.lang.String limitSizeString()
Gets the number of bytes already achieved in a human-readable format


achievedPercentage

public int achievedPercentage()
Gets the achieved percentage, as an int in the range 0..100 inclusive


getRate

public java.lang.String getRate()
Gets the processing rate in a human-readable format


getCompressionRatioString

public java.lang.String getCompressionRatioString()
Gets the compression ratio in a human-readable format


getTotalDuration

public long getTotalDuration()
Gets the estimated total duration.


getTotalDurationString

public java.lang.String getTotalDurationString()
Gets the estimated total duration, as a human-readable string


getRemainingDuration

public long getRemainingDuration()
Gets the estimated remaining duration.


getRemainingDurationString

public java.lang.String getRemainingDurationString()
Gets the estimated remaining duration, as a human-remaining string


isFinished

public boolean isFinished()
Wether this job is finished


isAtBeginning

public boolean isAtBeginning()
Wether this job is finished