Package com.biglybt.core.tag.impl
Class TagPropertyTrackerHandler
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagPropertyTrackerHandler
-
- All Implemented Interfaces:
TagFeatureProperties.TagPropertyListener
,TOTorrentListener
public class TagPropertyTrackerHandler extends java.lang.Object implements TagFeatureProperties.TagPropertyListener, TOTorrentListener
-
-
Field Summary
Fields Modifier and Type Field Description private Core
core
private java.util.Set<TagFeatureProperties.TagProperty>
properties
private java.util.concurrent.atomic.AtomicBoolean
sync_required
private TagManagerImpl
tag_manager
private java.util.Map<java.lang.String,java.util.List<Tag>>
tracker_host_map
-
Fields inherited from interface com.biglybt.core.torrent.TOTorrentListener
CT_ANNOUNCE_URLS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TagPropertyTrackerHandler(Core _core, TagManagerImpl _tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Set<java.lang.String>
getAugmentedHosts(DownloadManager dm)
protected java.util.List<Tag>
getTagsForDownload(DownloadManager dm)
private void
handleDownload(DownloadManager dm)
private void
handleProperty(TagFeatureProperties.TagProperty property, boolean start_of_day)
private void
hookTagProperty(TagFeatureProperties.TagProperty property)
void
propertyChanged(TagFeatureProperties.TagProperty property)
void
propertySync(TagFeatureProperties.TagProperty property)
protected void
sync()
void
torrentChanged(TOTorrent torrent, int change_type)
-
-
-
Field Detail
-
core
private final Core core
-
tag_manager
private final TagManagerImpl tag_manager
-
properties
private java.util.Set<TagFeatureProperties.TagProperty> properties
-
tracker_host_map
private final java.util.Map<java.lang.String,java.util.List<Tag>> tracker_host_map
-
sync_required
private final java.util.concurrent.atomic.AtomicBoolean sync_required
-
-
Constructor Detail
-
TagPropertyTrackerHandler
protected TagPropertyTrackerHandler(Core _core, TagManagerImpl _tm)
-
-
Method Detail
-
hookTagProperty
private void hookTagProperty(TagFeatureProperties.TagProperty property)
-
propertyChanged
public void propertyChanged(TagFeatureProperties.TagProperty property)
- Specified by:
propertyChanged
in interfaceTagFeatureProperties.TagPropertyListener
-
propertySync
public void propertySync(TagFeatureProperties.TagProperty property)
- Specified by:
propertySync
in interfaceTagFeatureProperties.TagPropertyListener
-
handleProperty
private void handleProperty(TagFeatureProperties.TagProperty property, boolean start_of_day)
-
getAugmentedHosts
private java.util.Set<java.lang.String> getAugmentedHosts(DownloadManager dm)
-
getTagsForDownload
protected java.util.List<Tag> getTagsForDownload(DownloadManager dm)
-
handleDownload
private void handleDownload(DownloadManager dm)
-
sync
protected void sync()
-
torrentChanged
public void torrentChanged(TOTorrent torrent, int change_type)
- Specified by:
torrentChanged
in interfaceTOTorrentListener
-
-