|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TRTrackerAnnouncer
Field Summary | |
---|---|
static byte |
AZ_TRACKER_VERSION_1
|
static byte |
AZ_TRACKER_VERSION_2
|
static byte |
AZ_TRACKER_VERSION_3
|
static byte |
AZ_TRACKER_VERSION_CURRENT
|
static int |
DEFAULT_PEERS_TO_CACHE
|
static int |
REFRESH_MINIMUM_SECS
|
static int |
TS_COMPLETED
|
static int |
TS_DOWNLOADING
|
static int |
TS_INITIALISED
|
static int |
TS_STOPPED
|
Method Summary | |
---|---|
void |
addListener(TRTrackerAnnouncerListener l)
|
void |
clearIPOverride()
|
void |
complete(boolean already_reported)
|
void |
destroy()
|
void |
generateEvidence(IndentWriter writer)
|
TRTrackerAnnouncer |
getBestAnnouncer()
|
TrackerPeerSource |
getCacheTrackerPeerSource()
|
TRTrackerAnnouncerResponse |
getLastResponse()
|
int |
getLastUpdateTime()
Last Update Time in seconds |
byte[] |
getPeerId()
|
int |
getStatus()
|
java.lang.String |
getStatusString()
|
int |
getTimeUntilNextUpdate()
|
TOTorrent |
getTorrent()
|
TrackerPeerSource |
getTrackerPeerSource(TOTorrentAnnounceURLSet set)
Gets a delegate tracker peer source for reporting against |
java.util.Map |
getTrackerResponseCache()
returns a Map containing "bencoded" entries representing a cache of tracker responses. |
java.net.URL |
getTrackerURL()
|
boolean |
isManual()
|
void |
refreshListeners()
This method forces all listeners to get an explicit "urlChanged" event to get them to re-examine the tracker |
void |
removeFromTrackerResponseCache(java.lang.String ip,
int tcp_port)
remove a specific entry from the cache if present |
void |
removeListener(TRTrackerAnnouncerListener l)
|
void |
resetTrackerUrl(boolean shuffle)
|
void |
setAnnounceDataProvider(TRTrackerAnnouncerDataProvider provider)
|
void |
setAnnounceResult(DownloadAnnounceResult result)
|
void |
setIPOverride(java.lang.String override)
|
void |
setRefreshDelayOverrides(int percentage)
|
void |
setTrackerResponseCache(java.util.Map map)
sets the response cache. |
void |
setTrackerURL(java.net.URL url)
|
void |
stop(boolean for_queue)
|
void |
update(boolean force)
|
Field Detail |
---|
static final byte AZ_TRACKER_VERSION_1
static final byte AZ_TRACKER_VERSION_2
static final byte AZ_TRACKER_VERSION_3
static final byte AZ_TRACKER_VERSION_CURRENT
static final int REFRESH_MINIMUM_SECS
static final int DEFAULT_PEERS_TO_CACHE
static final int TS_INITIALISED
static final int TS_DOWNLOADING
static final int TS_COMPLETED
static final int TS_STOPPED
Method Detail |
---|
void setAnnounceDataProvider(TRTrackerAnnouncerDataProvider provider)
TOTorrent getTorrent()
java.net.URL getTrackerURL()
void setTrackerURL(java.net.URL url)
void resetTrackerUrl(boolean shuffle)
void setIPOverride(java.lang.String override)
void clearIPOverride()
byte[] getPeerId()
void setRefreshDelayOverrides(int percentage)
int getTimeUntilNextUpdate()
int getLastUpdateTime()
void update(boolean force)
void complete(boolean already_reported)
void stop(boolean for_queue)
void destroy()
int getStatus()
boolean isManual()
java.lang.String getStatusString()
TRTrackerAnnouncer getBestAnnouncer()
TRTrackerAnnouncerResponse getLastResponse()
java.util.Map getTrackerResponseCache()
void setTrackerResponseCache(java.util.Map map)
map
- void removeFromTrackerResponseCache(java.lang.String ip, int tcp_port)
ip
- tcp_port
- TrackerPeerSource getTrackerPeerSource(TOTorrentAnnounceURLSet set)
set
-
TrackerPeerSource getCacheTrackerPeerSource()
void refreshListeners()
void setAnnounceResult(DownloadAnnounceResult result)
void addListener(TRTrackerAnnouncerListener l)
void removeListener(TRTrackerAnnouncerListener l)
void generateEvidence(IndentWriter writer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |