Methods Summary |
---|
public float | getAvailability()Gives the currently seen availability of the torrent
|
public int | getCheckingDoneInThousandNotation()if isChecking then returns completeness, 1000 -> 100%
|
public int | getCompleted()returns a value between 0 and 1000 giving the completion status of the current download
task (e.g. checking, downloading)
|
public long | getDiscarded()Gives the number of bytes discarded
|
public long | getDownloadAverage()Gives average number of bytes downloaded in last second
|
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 java.lang.String | getDownloadDirectory()Gives access to the directory into which the download is being saved
|
public long | getDownloaded()Gives the number of bytes downloaded
|
public java.lang.String | getETA()Gives the estimated time to completion as a string
|
public java.lang.String | getElapsedTime()Gives the elapsed download time as a string
|
public long | getHashFails()Gives the number of bytes thrown away due to piece hash check fails
|
public int | getHealth()returns an indication of the health of the torrent
|
public long | getRemaining()Gives number of bytes remaining
|
public long | getSecondsDownloading()
|
public long | getSecondsOnlySeeding()
|
public long | getSecondsSinceLastDownload()Returns the number of seconds running time since data was downloaded, -1 if never
|
public long | getSecondsSinceLastUpload()Returns the number of seconds running time since data was uploaded, -1 if never
|
public int | getShareRatio()Gives the share ratio of the torrent in 1000ths (i.e. 1000 = share ratio of 1)
|
public java.lang.String | getStatus()Returns an overall string representing the state of the download
|
public java.lang.String | getStatus(boolean localised)Returns an overall string representing the state of the download
*localised*
|
public java.lang.String | getTargetFileOrDir()Gives access to the target file or directory that the download is being saved to
|
public long | getTimeStarted()in ms since epoch
|
public long | getTimeStartedSeeding()
|
public long | getTotalAverage()Gives average number of bytes computed for torrent in last second
|
public java.lang.String | getTrackerStatus()returns an general status string for the tracker
|
public long | getUploadAverage()Gives average number of bytes uploaded in last second
|
public long | getUploaded()Gives the number of bytes uploaded
|