Package com.biglybt.core.tracker
Interface TrackerPeerSource
-
- All Known Implementing Classes:
TrackerPeerSourceAdapter
public interface TrackerPeerSource
-
-
Field Summary
Fields Modifier and Type Field Description static int
ST_AVAILABLE
static int
ST_DISABLED
static int
ST_ERROR
static int
ST_INITIALISING
static int
ST_ONLINE
static int
ST_QUEUED
static int
ST_STOPPED
static int
ST_UNAVAILABLE
static int
ST_UNKNOWN
static int
ST_UPDATING
static int
TP_DHT
static int
TP_HTTP_SEED
static int
TP_INCOMING
static int
TP_LAN
static int
TP_PEX
static int
TP_PLUGIN
static int
TP_TRACKER
static int
TP_UNKNOWN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canDelete()
boolean
canManuallyUpdate()
void
delete()
int
getCompletedCount()
If the tracker source supports 'number downloads completed' this will be >= 0java.lang.String
getDetails()
int
getInterval()
int
getLastUpdate()
int
getLeecherCount()
int
getMinInterval()
java.lang.String
getName()
int
getPeers()
long[]
getReportedStats()
int
getSecondsToUpdate()
int
getSeedCount()
int
getStatus()
java.lang.String
getStatusString()
int
getType()
java.net.URL
getURL()
boolean
isUpdating()
void
manualUpdate()
-
-
-
Field Detail
-
TP_UNKNOWN
static final int TP_UNKNOWN
- See Also:
- Constant Field Values
-
TP_TRACKER
static final int TP_TRACKER
- See Also:
- Constant Field Values
-
TP_HTTP_SEED
static final int TP_HTTP_SEED
- See Also:
- Constant Field Values
-
TP_DHT
static final int TP_DHT
- See Also:
- Constant Field Values
-
TP_LAN
static final int TP_LAN
- See Also:
- Constant Field Values
-
TP_PEX
static final int TP_PEX
- See Also:
- Constant Field Values
-
TP_INCOMING
static final int TP_INCOMING
- See Also:
- Constant Field Values
-
TP_PLUGIN
static final int TP_PLUGIN
- See Also:
- Constant Field Values
-
ST_UNKNOWN
static final int ST_UNKNOWN
- See Also:
- Constant Field Values
-
ST_DISABLED
static final int ST_DISABLED
- See Also:
- Constant Field Values
-
ST_STOPPED
static final int ST_STOPPED
- See Also:
- Constant Field Values
-
ST_QUEUED
static final int ST_QUEUED
- See Also:
- Constant Field Values
-
ST_UPDATING
static final int ST_UPDATING
- See Also:
- Constant Field Values
-
ST_ONLINE
static final int ST_ONLINE
- See Also:
- Constant Field Values
-
ST_ERROR
static final int ST_ERROR
- See Also:
- Constant Field Values
-
ST_AVAILABLE
static final int ST_AVAILABLE
- See Also:
- Constant Field Values
-
ST_UNAVAILABLE
static final int ST_UNAVAILABLE
- See Also:
- Constant Field Values
-
ST_INITIALISING
static final int ST_INITIALISING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
int getType()
-
getName
java.lang.String getName()
-
getDetails
java.lang.String getDetails()
-
getStatus
int getStatus()
-
getStatusString
java.lang.String getStatusString()
-
getSeedCount
int getSeedCount()
-
getLeecherCount
int getLeecherCount()
-
getURL
java.net.URL getURL()
- Returns:
- URL associated with this source, if there is one, null otherwise
-
getPeers
int getPeers()
-
getCompletedCount
int getCompletedCount()
If the tracker source supports 'number downloads completed' this will be >= 0- Returns:
-
getLastUpdate
int getLastUpdate()
-
getSecondsToUpdate
int getSecondsToUpdate()
- Returns:
- Integer.MIN_VAL -> no details available
-
getInterval
int getInterval()
-
getMinInterval
int getMinInterval()
-
isUpdating
boolean isUpdating()
-
canManuallyUpdate
boolean canManuallyUpdate()
-
manualUpdate
void manualUpdate()
-
getReportedStats
long[] getReportedStats()
-
canDelete
boolean canDelete()
-
delete
void delete()
-
-