FileDocCategorySizeDatePackage
TRTrackerAnnouncer.javaAPI DocAzureus 3.0.3.43645Mon Feb 26 09:01:14 GMT 2007org.gudy.azureus2.core3.tracker.client

TRTrackerAnnouncer

public interface TRTrackerAnnouncer

Fields Summary
public static final byte
AZ_TRACKER_VERSION_1
public static final byte
AZ_TRACKER_VERSION_2
public static final byte
AZ_TRACKER_VERSION_3
public static final byte
AZ_TRACKER_VERSION_CURRENT
public static final int
REFRESH_MINIMUM_SECS
public static final int
DEFAULT_PEERS_TO_CACHE
public static final int
TS_INITIALISED
public static final int
TS_DOWNLOADING
public static final int
TS_COMPLETED
public static final int
TS_STOPPED
Constructors Summary
Methods Summary
public voidaddListener(TRTrackerAnnouncerListener l)

public voidclearIPOverride()

public voidcloneFrom(org.gudy.azureus2.core3.tracker.client.TRTrackerAnnouncer other)

public voidcomplete(boolean already_reported)

public voiddestroy()

public voidgenerateEvidence(org.gudy.azureus2.core3.util.IndentWriter writer)

public TRTrackerAnnouncerResponsegetLastResponse()

public intgetLastUpdateTime()

public byte[]getPeerId()

public intgetStatus()

public java.lang.StringgetStatusString()

public intgetTimeUntilNextUpdate()

public TOTorrentgetTorrent()

public java.util.MapgetTrackerResponseCache()
returns a Map containing "bencoded" entries representing a cache of tracker responses.

return

public java.net.URLgetTrackerUrl()

public booleanisManual()

public voidrefreshListeners()
This method forces all listeners to get an explicit "urlChanged" event to get them to re-examine the tracker

public voidremoveFromTrackerResponseCache(java.lang.String ip, int tcp_port)
remove a specific entry from the cache if present

param
ip
param
tcp_port

public voidremoveListener(TRTrackerAnnouncerListener l)

public voidresetTrackerUrl(boolean shuffle)

public voidsetAnnounceDataProvider(TRTrackerAnnouncerDataProvider provider)

public voidsetAnnounceResult(org.gudy.azureus2.plugins.download.DownloadAnnounceResult result)

public voidsetIPOverride(java.lang.String override)

public voidsetRefreshDelayOverrides(int percentage)

public voidsetTrackerResponseCache(java.util.Map map)
sets the response cache. This may be used by the tracker client to return peer details when the tracker is offline

param
map

public voidsetTrackerUrl(java.net.URL url)

public voidstop(boolean for_queue)

public voidupdate(boolean force)