Methods Summary |
---|
public long | getAvailWentBadTime()
|
public float | getAvailability()
|
public int | getCompleted()Find out percentage done of current state
Use getDownloadCompleted() if you wish to find out a torrents download completion level
|
public long | getDataReceiveRate()
|
public long | getDataSendRate()
|
public long | getDiscarded()
|
public int | getDownloadCompleted(boolean bLive)Retrieve the level of download completion.
To understand the bLive parameter, you must know a bit about the
Torrent activation process:
1) Torrent goes into ST_WAITING
2) Torrent moves to ST_PREPARING
3) Torrent moves to ST_DOWNLOADING or ST_SEEDING
While in ST_PREPARING, Completion Level is rebuilt (either via Fast Resume
or via piece checking). Quite often, the download completion level before
ST_PREPARING and after ST_PREPARING are identical.
Before going into ST_PREPARING, we store the download completion level.
If you wish to retrieve this value instead of the live "building" one,
pass false for the parameter.
|
public int | getDownloadRateLimitBytesPerSecond()Get the max download rate allowed for this download.
|
public long | getETA()
|
public java.lang.String | getElapsedTime()
|
public long | getHashFailBytes()
|
public long | getHashFailCount()
|
public long | getProtocolReceiveRate()
|
public long | getProtocolSendRate()
|
public long | getRemaining()
|
public long | getSecondsDownloading()
|
public long | getSecondsOnlySeeding()
|
public int | getShareRatio()Gives the share ratio of the torrent in 1000ths (i.e. 1000 = share ratio of 1)
|
public int | getTimeSinceLastDataReceivedInSeconds()
|
public int | getTimeSinceLastDataSentInSeconds()
|
public long | getTimeStarted()
|
public long | getTimeStartedSeeding()
|
public long | getTotalAverage()Swarm speed
|
public long | getTotalAveragePerPeer()Average for a peer in the swarm
|
public long | getTotalDataBytesReceived()Get the total number of bytes ever downloaded.
|
public long | getTotalDataBytesSent()Get the total number of bytes ever uploaded.
|
public long | getTotalGoodDataBytesReceived()data bytes received minus discards and hashfails
|
public long | getTotalProtocolBytesReceived()
|
public long | getTotalProtocolBytesSent()
|
public int | getUploadRateLimitBytesPerSecond()Get the max upload rate allowed for this download.
|
public void | restoreSessionTotals(long _saved_data_bytes_downloaded, long _saved_data_bytes_uploaded, long _saved_discarded, long _saved_hashfails, long _saved_SecondsDownloading, long _saved_SecondsOnlySeeding)
|
public void | setCompleted(int c)
|
public void | setDownloadCompleted(int completed)
|
public void | setDownloadRateLimitBytesPerSecond(int max_rate_bps)Set the max download rate allowed for this download.
|
public void | setUploadRateLimitBytesPerSecond(int max_rate_bps)Set the max upload rate allowed for this download.
|