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 Object


Constructor Summary
protected BuddyPluginTracker.BuddyTrackingData(BuddyPluginBuddy _buddy)
           
 
Method Summary
protected  byte[][] exportFullIDs(List<Download> downloads)
           
protected  byte[] exportShortIDs(List<Download> downloads)
           
protected  Map<Download,Boolean> getDownloadsToTrack()
           
protected  String getIP()
           
protected  String getStatus()
           
protected  boolean hasDownloadsInCommon()
           
protected  boolean hasIPChanged()
           
protected  Map<Download,com.aelitis.azureus.plugins.net.buddy.tracker.BuddyPluginTracker.buddyDownloadData> importFullIDs(byte[] ids, byte[] states)
           
protected  List<Download> importShortIDs(byte[] ids)
           
protected  void log(String str)
           
protected  void log(String str, boolean verbose, boolean no_buddy)
           
protected  Map<String,Object> receiveTrackerMessage(int type, Map<String,Object> msg_in)
           
protected  void removeDownload(Download download)
           
protected  void sendTrackerMessage(int type, Map<String,Object> body)
           
protected  void setAlive(boolean alive)
           
protected  void updateCommonDownloads(Map downloads, boolean incremental)
           
protected  void updateIP()
           
protected  void updateLocal(Set<Download> downloads, int id, Map diff_map)
           
protected  Map updateRemote(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 String getIP()

hasDownloadsInCommon

protected boolean hasDownloadsInCommon()

setAlive

protected void setAlive(boolean alive)

updateLocal

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

updateRemote

protected Map updateRemote(Map 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,com.aelitis.azureus.plugins.net.buddy.tracker.BuddyPluginTracker.buddyDownloadData> importFullIDs(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)