Class BuddyPluginTracker.BuddyTrackingData

java.lang.Object
com.biglybt.plugin.net.buddy.tracker.BuddyPluginTracker.BuddyTrackingData
Enclosing class:
BuddyPluginTracker

public class BuddyPluginTracker.BuddyTrackingData extends Object
  • Field Details

    • STATE_COMPLETE

      private static final byte STATE_COMPLETE
      See Also:
    • STATE_ACTIVE

      private static final byte STATE_ACTIVE
      See Also:
    • buddy

      private BuddyPluginBuddy buddy
    • downloads_sent

      private Set<Download> downloads_sent
    • downloads_sent_id

      private int downloads_sent_id
    • tracking_remote

      private int tracking_remote
    • downloads_in_common

      private Map<Download,BuddyPluginTracker.BuddyDownloadData> downloads_in_common
    • buddy_seeding_only

      private boolean buddy_seeding_only
    • consecutive_fails

      private int consecutive_fails
    • last_fail

      private long last_fail
    • current_ips

      private String[] current_ips
  • Constructor Details

  • Method Details

    • getProperties

      protected void getProperties(IndentWriter writer)
    • updateIPs

      protected void updateIPs()
    • destroy

      protected void destroy()
    • getLatestIPs

      private String[] getLatestIPs()
    • getIPs

      protected String[] getIPs()
    • hasDownloadsInCommon

      protected boolean hasDownloadsInCommon()
    • isDownloadInactive

      protected boolean isDownloadInactive(Download download)
    • getBuddyDownloadData

      protected BuddyPluginTracker.BuddyDownloadData getBuddyDownloadData(Download download)
    • setConnected

      protected void setConnected(boolean connected)
    • setAlive

      protected void setAlive(boolean alive)
    • updateLocal

      protected void updateLocal(Set<Download> downloads, int id, Map diff_map, Set<Download> downloads_with_remote_active_incomplete)
    • updateRemote

      protected Map updateRemote(int version, Map<String,Object> msg)
    • updateCommonDownloads

      protected void updateCommonDownloads(Map downloads, boolean incremental)
    • updateStatus

      protected void updateStatus()
    • sendTrackerMessage

      protected void sendTrackerMessage(int type, Map<String,Object> body)
    • receiveTrackerMessage

      protected Map<String,Object> receiveTrackerMessage(int type, Map<String,Object> msg_in)
    • exportShortIDs

      protected byte[] exportShortIDs(List<Download> downloads)
    • importShortIDs

      protected List<Download> importShortIDs(byte[] ids)
    • exportFullIDs

      protected byte[][] exportFullIDs(List<Download> downloads)
    • importFullIDs

      protected Map<Download,BuddyPluginTracker.BuddyDownloadData> importFullIDs(int version, byte[] ids, byte[] states)
    • getDownloadsToTrack

      protected Map<Download,Boolean> getDownloadsToTrack()
    • removeDownload

      protected void removeDownload(Download download)
    • getStatus

      protected String getStatus()
    • log

      protected void log(String str)
    • log

      protected void log(String str, boolean verbose, boolean no_buddy)