Class TRTrackerAnnouncerMuxer
java.lang.Object
com.biglybt.core.tracker.client.impl.TRTrackerAnnouncerImpl
com.biglybt.core.tracker.client.impl.TRTrackerAnnouncerMuxer
- All Implemented Interfaces:
TRTrackerAnnouncer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class TRTrackerAnnouncerImpl
TRTrackerAnnouncerImpl.Helper -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final Set<TRTrackerAnnouncerHelper> private final CopyOnWriteList<TRTrackerAnnouncerHelper> private booleanprivate final longprivate String[]private booleanprivate TimerEventprivate Stringprivate booleanprivate longprivate TRTrackerAnnouncerHelperprivate longprivate TRTrackerAnnouncerResponseprivate TRTrackerAnnouncerDataProvider(package private) final Map<String, TRTrackerAnnouncerMuxer.StatusSummary> private static booleanprivate booleanFields inherited from class TRTrackerAnnouncerImpl
listeners, LOGID, tracker_peer_cacheFields inherited from interface 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
ConstructorsModifierConstructorDescriptionprotectedTRTrackerAnnouncerMuxer(TOTorrent _torrent, TRTrackerAnnouncerFactory.DataProvider _f_provider, boolean _manual) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckActivation(boolean force) voidvoidcomplete(boolean already_reported) private TRTrackerAnnouncerHelpercreate(TOTorrent torrent, String[] networks, TOTorrentAnnounceURLSet[] sets) voiddestroy()protected voidforceStop(TRTrackerBTAnnouncerImpl announcer, String[] networks, URL url) voidgenerateEvidence(IndentWriter writer) protected TRTrackerAnnouncerHelperprotected TRTrackerAnnouncerHelperintLast Update Time in secondsprotected intintprivate StringgetString(TOTorrentAnnounceURLSet[] sets) intprivate HashWrapperGets a delegate tracker peer source for reporting againstprotected voidinformResponse(TRTrackerAnnouncerHelper helper, TRTrackerAnnouncerRequest request, TRTrackerAnnouncerResponse response) booleanisManual()voidThis method forces all listeners to get an explicit "urlChanged" event to get them to re-examine the trackervoidresetTrackerUrl(boolean shuffle) private booleansame(TOTorrentAnnounceURLSet[] s1, TOTorrentAnnounceURLSet[] s2) private booleanvoidvoidvoidsetIPOverride(String override) voidsetRefreshDelayOverrides(int percentage) voidsetTrackerURL(URL url) protected voidsetupActivationCheck(int delay) protected voidsplit(boolean first_time) voidstop(boolean for_queue) voidupdate(boolean force) Methods inherited from class TRTrackerAnnouncerImpl
addListener, addToTrackerCache, clearTrackerResponseCache, exportTrackerCache, getCacheTrackerPeerSource, getHelper, getPeerId, getPeersFromCache, getTorrent, getTrackerResponseCache, importTrackerCache, informURLRefresh, mergeResponseCache, removeFromTrackerResponseCache, removeListener, setTrackerResponseCache
-
Field Details
-
ACT_CHECK_INIT_DELAY
private static final int ACT_CHECK_INIT_DELAY- See Also:
-
ACT_CHECK_INTERIM_DELAY
private static final int ACT_CHECK_INTERIM_DELAY- See Also:
-
ACT_CHECK_IDLE_DELAY
private static final int ACT_CHECK_IDLE_DELAY- See Also:
-
ACT_CHECK_SEEDING_SHORT_DELAY
private static final int ACT_CHECK_SEEDING_SHORT_DELAY- See Also:
-
ACT_CHECK_SEEDING_LONG_DELAY
private static final int ACT_CHECK_SEEDING_LONG_DELAY- See Also:
-
ACT_CHECK_NOT_SMART_DELAY
private static final int ACT_CHECK_NOT_SMART_DELAY- See Also:
-
smart_activation
private static boolean smart_activation -
f_provider
-
is_manual
private boolean is_manual -
create_time
private final long create_time -
announcers
-
activated
-
last_activation_time
private long last_activation_time -
failed_urls
-
event
-
provider
-
ip_override
-
complete
private boolean complete -
stopped
private boolean stopped -
destroyed
private boolean destroyed -
current_networks
-
last_best_active
-
last_best_active_set_time
private long last_best_active_set_time -
recent_responses
-
last_response_informed
-
-
Constructor Details
-
TRTrackerAnnouncerMuxer
protected TRTrackerAnnouncerMuxer(TOTorrent _torrent, TRTrackerAnnouncerFactory.DataProvider _f_provider, boolean _manual) throws TRTrackerAnnouncerException - Throws:
TRTrackerAnnouncerException
-
-
Method Details
-
split
- Throws:
TRTrackerAnnouncerException
-
setupActivationCheck
protected void setupActivationCheck(int delay) -
checkActivation
protected void checkActivation(boolean force) -
getString
-
same
-
sameSupport
-
forceStop
-
create
private TRTrackerAnnouncerHelper create(TOTorrent torrent, String[] networks, TOTorrentAnnounceURLSet[] sets) throws TRTrackerAnnouncerException - Throws:
TRTrackerAnnouncerException
-
getLastResponse
-
informResponse
protected void informResponse(TRTrackerAnnouncerHelper helper, TRTrackerAnnouncerRequest request, TRTrackerAnnouncerResponse response) - Overrides:
informResponsein classTRTrackerAnnouncerImpl
-
isManual
public boolean isManual() -
setAnnounceDataProvider
-
getBestActive
-
getBestActiveSupport
-
getTorrentHashOverride
-
getTrackerURL
-
setTrackerURL
-
resetTrackerUrl
public void resetTrackerUrl(boolean shuffle) -
setIPOverride
-
clearIPOverride
public void clearIPOverride() -
setRefreshDelayOverrides
public void setRefreshDelayOverrides(int percentage) -
getTimeUntilNextUpdate
public int getTimeUntilNextUpdate() -
getLastUpdateTime
public int getLastUpdateTime()Description copied from interface:TRTrackerAnnouncerLast 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
-
getBestAnnouncer
-
refreshListeners
public void refreshListeners()Description copied from interface:TRTrackerAnnouncerThis method forces all listeners to get an explicit "urlChanged" event to get them to re-examine the tracker -
setAnnounceResult
-
getPeerCacheLimit
protected int getPeerCacheLimit()- Specified by:
getPeerCacheLimitin classTRTrackerAnnouncerImpl
-
getTrackerPeerSource
Description copied from interface:TRTrackerAnnouncerGets a delegate tracker peer source for reporting against- Parameters:
set-- Returns:
-
generateEvidence
-