com.aelitis.azureus.plugins.net.buddy.tracker
Class BuddyPluginTracker.BuddyTrackingData

java.lang.Object
  extended by com.aelitis.azureus.plugins.net.buddy.tracker.BuddyPluginTracker.BuddyTrackingData
Enclosing class:
BuddyPluginTracker

public class BuddyPluginTracker.BuddyTrackingData
extends java.lang.Object


Constructor Summary
protected BuddyPluginTracker.BuddyTrackingData(BuddyPluginBuddy _buddy)
           
 
Method Summary
protected  byte[][] exportFullIDs(java.util.List<Download> downloads)
           
protected  byte[] exportShortIDs(java.util.List<Download> downloads)
           
protected  java.util.Map<Download,java.lang.Boolean> getDownloadsToTrack()
           
protected  java.lang.String getIP()
           
protected  java.lang.String getStatus()
           
protected  boolean hasDownloadsInCommon()
           
protected  boolean hasIPChanged()
           
protected  java.util.Map<Download,com.aelitis.azureus.plugins.net.buddy.tracker.BuddyPluginTracker.buddyDownloadData> importFullIDs(byte[] ids, byte[] states)
           
protected  java.util.List<Download> importShortIDs(byte[] ids)
           
protected  void log(java.lang.String str)
           
protected  void log(java.lang.String str, boolean verbose, boolean no_buddy)
           
protected  java.util.Map<java.lang.String,java.lang.Object> receiveTrackerMessage(int type, java.util.Map<java.lang.String,java.lang.Object> msg_in)
           
protected  void removeDownload(Download download)
           
protected  void sendTrackerMessage(int type, java.util.Map<java.lang.String,java.lang.Object> body)
           
protected  void setAlive(boolean alive)
           
protected  void updateCommonDownloads(java.util.Map downloads, boolean incremental)
           
protected  void updateIP()
           
protected  void updateLocal(java.util.Set<Download> downloads, int id, java.util.Map diff_map)
           
protected  java.util.Map updateRemote(java.util.Map msg)
           
protected  void updateStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuddyPluginTracker.BuddyTrackingData

protected BuddyPluginTracker.BuddyTrackingData(BuddyPluginBuddy _buddy)
Method Detail

updateIP

protected void updateIP()

hasIPChanged

protected boolean hasIPChanged()

getIP

protected java.lang.String getIP()

hasDownloadsInCommon

protected boolean hasDownloadsInCommon()

setAlive

protected void setAlive(boolean alive)

updateLocal

protected void updateLocal(java.util.Set<Download> downloads,
                           int id,
                           java.util.Map diff_map)

updateRemote

protected java.util.Map updateRemote(java.util.Map msg)

updateCommonDownloads

protected void updateCommonDownloads(java.util.Map downloads,
                                     boolean incremental)

updateStatus

protected void updateStatus()

sendTrackerMessage

protected void sendTrackerMessage(int type,
                                  java.util.Map<java.lang.String,java.lang.Object> body)

receiveTrackerMessage

protected java.util.Map<java.lang.String,java.lang.Object> receiveTrackerMessage(int type,
                                                                                 java.util.Map<java.lang.String,java.lang.Object> msg_in)

exportShortIDs

protected byte[] exportShortIDs(java.util.List<Download> downloads)

importShortIDs

protected java.util.List<Download> importShortIDs(byte[] ids)

exportFullIDs

protected byte[][] exportFullIDs(java.util.List<Download> downloads)

importFullIDs

protected java.util.Map<Download,com.aelitis.azureus.plugins.net.buddy.tracker.BuddyPluginTracker.buddyDownloadData> importFullIDs(byte[] ids,
                                                                                                                                   byte[] states)

getDownloadsToTrack

protected java.util.Map<Download,java.lang.Boolean> getDownloadsToTrack()

removeDownload

protected void removeDownload(Download download)

getStatus

protected java.lang.String getStatus()

log

protected void log(java.lang.String str)

log

protected void log(java.lang.String str,
                   boolean verbose,
                   boolean no_buddy)