| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DownloadStats
| Field Summary | |
|---|---|
static int | 
HEALTH_ERROR
download in STATE_ERROR, see getStatus() for error | 
static int | 
HEALTH_KO
not connected to any peer and downloading  | 
static int | 
HEALTH_NO_REMOTE
 | 
static int | 
HEALTH_NO_TRACKER
 | 
static int | 
HEALTH_OK
 | 
static int | 
HEALTH_STOPPED
 | 
| Method Summary | |
|---|---|
 float | 
getAvailability()
Gives the currently seen availability of the torrent  | 
 long | 
getBytesUnavailable()
Return the number of bytes of data fromt he torrent that is unavailable given the current sources (peers).  | 
 int | 
getCheckingDoneInThousandNotation()
if isChecking then returns completeness, 1000 -> 100%  | 
 int | 
getCompleted()
returns a value between 0 and 1000 giving the completion status of the current download task (e.g.  | 
 long | 
getDiscarded()
Gives the number of bytes discarded.  | 
 long | 
getDownloadAverage()
Gives average number of bytes downloaded in last second  | 
 long | 
getDownloadAverage(boolean include_protocol)
 | 
 int | 
getDownloadCompleted(boolean bLive)
Retrieve the level of download completion.  | 
 String | 
getDownloadDirectory()
Gives access to the directory into which the download is being saved  | 
 long | 
getDownloaded()
Gives the number of bytes downloaded  | 
 long | 
getDownloaded(boolean include_protocol)
 | 
 String | 
getElapsedTime()
Gives the elapsed download time as a string  | 
 String | 
getETA()
Gives the estimated time to completion as a string  | 
 long | 
getETASecs()
ETA time in seconds.  | 
 long | 
getHashFails()
Gives the number of bytes thrown away due to piece hash check fails  | 
 int | 
getHealth()
returns an indication of the health of the torrent  | 
 long | 
getRemaining()
Gives number of bytes remaining.  | 
 long | 
getSecondsDownloading()
Return the # of seconds that the torrent has been downloading.  | 
 long | 
getSecondsOnlySeeding()
Return the # of seconds that the torrent has been only seeding.  | 
 long | 
getSecondsSinceLastDownload()
Returns the number of seconds running time since data was downloaded, -1 if never  | 
 long | 
getSecondsSinceLastUpload()
Returns the number of seconds running time since data was uploaded, -1 if never  | 
 int | 
getShareRatio()
Gives the share ratio of the torrent in 1000ths (i.e.  | 
 String | 
getStatus()
Returns an overall string representing the state of the download  | 
 String | 
getStatus(boolean localised)
Returns an overall string representing the state of the download *localised*  | 
 String | 
getTargetFileOrDir()
Gives access to the target file or directory that the download is being saved to  | 
 long | 
getTimeStarted()
in ms since epoch  | 
 long | 
getTimeStartedSeeding()
Time that the torrent started seeding.  | 
 long | 
getTotalAverage()
Gives average number of bytes computed for torrent in last second  | 
 String | 
getTrackerStatus()
returns an general status string for the tracker  | 
 long | 
getUploadAverage()
Gives average number of bytes uploaded in last second  | 
 long | 
getUploadAverage(boolean include_protocol)
 | 
 long | 
getUploaded()
Gives the number of bytes uploaded  | 
 long | 
getUploaded(boolean include_protocol)
 | 
 void | 
resetUploadedDownloaded(long new_up,
                        long new_down)
resets totals.  | 
| Field Detail | 
|---|
static final int HEALTH_STOPPED
static final int HEALTH_NO_TRACKER
static final int HEALTH_NO_REMOTE
static final int HEALTH_OK
static final int HEALTH_KO
static final int HEALTH_ERROR
getStatus() for error
| Method Detail | 
|---|
String getStatus()
String getStatus(boolean localised)
String getDownloadDirectory()
String getTargetFileOrDir()
String getTrackerStatus()
int getCompleted()
int getDownloadCompleted(boolean bLive)
bLive - true - Always returns the known completion level of the torrent
               false - In the case of ST_PREPARING, return completion level 
                       before of the torrent ST_PREPARING started.  
                       Otherwise, same as true.
int getCheckingDoneInThousandNotation()
void resetUploadedDownloaded(long new_up,
                             long new_down)
long getDownloaded()
long getDownloaded(boolean include_protocol)
include_protocol - 
long getRemaining()
long getUploaded()
long getUploaded(boolean include_protocol)
include_protocol - 
long getDiscarded()
getHashFails()
 (ex. end game mode where multiple peers send same block, et)
long getDownloadAverage()
long getDownloadAverage(boolean include_protocol)
include_protocol - 
long getUploadAverage()
long getUploadAverage(boolean include_protocol)
include_protocol - 
long getTotalAverage()
String getElapsedTime()
String getETA()
long getETASecs()
long getHashFails()
int getShareRatio()
long getTimeStarted()
long getTimeStartedSeeding()
float getAvailability()
long getSecondsDownloading()
long getSecondsOnlySeeding()
long getSecondsSinceLastDownload()
long getSecondsSinceLastUpload()
int getHealth()
long getBytesUnavailable()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||