org.gudy.azureus2.core3.tracker.client.impl
Class TRTrackerAnnouncerMuxer

java.lang.Object
  extended by org.gudy.azureus2.core3.tracker.client.impl.TRTrackerAnnouncerImpl
      extended by org.gudy.azureus2.core3.tracker.client.impl.TRTrackerAnnouncerMuxer
All Implemented Interfaces:
TRTrackerAnnouncer

public class TRTrackerAnnouncerMuxer
extends TRTrackerAnnouncerImpl


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gudy.azureus2.core3.tracker.client.impl.TRTrackerAnnouncerImpl
TRTrackerAnnouncerImpl.Helper
 
Field Summary
 
Fields inherited from class org.gudy.azureus2.core3.tracker.client.impl.TRTrackerAnnouncerImpl
LDT_TRACKER_RESPONSE, LDT_URL_CHANGED, LDT_URL_REFRESH, listeners, LOGID
 
Fields inherited from interface org.gudy.azureus2.core3.tracker.client.TRTrackerAnnouncer
AZ_TRACKER_VERSION_1, AZ_TRACKER_VERSION_2, AZ_TRACKER_VERSION_3, AZ_TRACKER_VERSION_CURRENT, DEFAULT_PEERS_TO_CACHE, REFRESH_MINIMUM_SECS, TS_COMPLETED, TS_DOWNLOADING, TS_INITIALISED, TS_STOPPED
 
Constructor Summary
protected TRTrackerAnnouncerMuxer(TOTorrent _torrent, TRTrackerAnnouncerFactory.DataProvider _f_provider, boolean _manual)
           
 
Method Summary
protected  void checkActivation(boolean force)
           
 void clearIPOverride()
           
 void complete(boolean already_reported)
           
 void destroy()
           
protected  void forceStop(TRTrackerBTAnnouncerImpl announcer, java.lang.String[] networks, java.net.URL url)
           
 void generateEvidence(IndentWriter writer)
           
protected  TRTrackerAnnouncerHelper getBestActive()
           
protected  TRTrackerAnnouncerHelper getBestActiveSupport()
           
 TRTrackerAnnouncer getBestAnnouncer()
           
 TRTrackerAnnouncerResponse getLastResponse()
           
 int getLastUpdateTime()
          Last Update Time in seconds
protected  int getPeerCacheLimit()
           
 int getStatus()
           
 java.lang.String getStatusString()
           
 int getTimeUntilNextUpdate()
           
 TrackerPeerSource getTrackerPeerSource(TOTorrentAnnounceURLSet set)
          Gets a delegate tracker peer source for reporting against
 java.net.URL getTrackerURL()
           
protected  void informResponse(TRTrackerAnnouncerHelper helper, TRTrackerAnnouncerResponse response)
           
 boolean isManual()
           
 void refreshListeners()
          This method forces all listeners to get an explicit "urlChanged" event to get them to re-examine the tracker
 void resetTrackerUrl(boolean shuffle)
           
 void setAnnounceDataProvider(TRTrackerAnnouncerDataProvider _provider)
           
 void setAnnounceResult(DownloadAnnounceResult result)
           
 void setIPOverride(java.lang.String override)
           
 void setRefreshDelayOverrides(int percentage)
           
 void setTrackerURL(java.net.URL url)
           
protected  void setupActivationCheck(int delay)
           
protected  void split(boolean first_time)
           
 void stop(boolean for_queue)
           
 void update(boolean force)
           
 
Methods inherited from class org.gudy.azureus2.core3.tracker.client.impl.TRTrackerAnnouncerImpl
addListener, addToTrackerCache, exportTrackerCache, getAnonymousPeerId, getCacheTrackerPeerSource, getHelper, getPeerId, getPeersFromCache, getTorrent, getTrackerResponseCache, importTrackerCache, informURLRefresh, mergeResponseCache, removeFromTrackerResponseCache, removeListener, setTrackerResponseCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRTrackerAnnouncerMuxer

protected TRTrackerAnnouncerMuxer(TOTorrent _torrent,
                                  TRTrackerAnnouncerFactory.DataProvider _f_provider,
                                  boolean _manual)
                           throws TRTrackerAnnouncerException
Throws:
TRTrackerAnnouncerException
Method Detail

split

protected void split(boolean first_time)
              throws TRTrackerAnnouncerException
Throws:
TRTrackerAnnouncerException

setupActivationCheck

protected void setupActivationCheck(int delay)

checkActivation

protected void checkActivation(boolean force)

forceStop

protected void forceStop(TRTrackerBTAnnouncerImpl announcer,
                         java.lang.String[] networks,
                         java.net.URL url)

getLastResponse

public TRTrackerAnnouncerResponse getLastResponse()

informResponse

protected void informResponse(TRTrackerAnnouncerHelper helper,
                              TRTrackerAnnouncerResponse response)
Overrides:
informResponse in class TRTrackerAnnouncerImpl

isManual

public boolean isManual()

setAnnounceDataProvider

public void setAnnounceDataProvider(TRTrackerAnnouncerDataProvider _provider)

getBestActive

protected TRTrackerAnnouncerHelper getBestActive()

getBestActiveSupport

protected TRTrackerAnnouncerHelper getBestActiveSupport()

getTrackerURL

public java.net.URL getTrackerURL()

setTrackerURL

public void setTrackerURL(java.net.URL url)

resetTrackerUrl

public void resetTrackerUrl(boolean shuffle)

setIPOverride

public void setIPOverride(java.lang.String override)

clearIPOverride

public void clearIPOverride()

setRefreshDelayOverrides

public void setRefreshDelayOverrides(int percentage)

getTimeUntilNextUpdate

public int getTimeUntilNextUpdate()

getLastUpdateTime

public int getLastUpdateTime()
Description copied from interface: TRTrackerAnnouncer
Last Update Time in seconds


update

public void update(boolean force)

complete

public void complete(boolean already_reported)

stop

public void stop(boolean for_queue)

destroy

public void destroy()

getStatus

public int getStatus()

getStatusString

public java.lang.String getStatusString()

getBestAnnouncer

public TRTrackerAnnouncer getBestAnnouncer()

refreshListeners

public void refreshListeners()
Description copied from interface: TRTrackerAnnouncer
This method forces all listeners to get an explicit "urlChanged" event to get them to re-examine the tracker


setAnnounceResult

public void setAnnounceResult(DownloadAnnounceResult result)

getPeerCacheLimit

protected int getPeerCacheLimit()
Specified by:
getPeerCacheLimit in class TRTrackerAnnouncerImpl

getTrackerPeerSource

public TrackerPeerSource getTrackerPeerSource(TOTorrentAnnounceURLSet set)
Description copied from interface: TRTrackerAnnouncer
Gets a delegate tracker peer source for reporting against

Returns:

generateEvidence

public void generateEvidence(IndentWriter writer)