Class BuddyPluginTracker.BuddyTrackingData
java.lang.Object
com.biglybt.plugin.net.buddy.tracker.BuddyPluginTracker.BuddyTrackingData
- Enclosing class:
- BuddyPluginTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BuddyPluginBuddy
private boolean
private int
private String[]
private int
private long
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
destroy()
protected byte[][]
exportFullIDs
(List<Download> downloads) protected byte[]
exportShortIDs
(List<Download> downloads) protected String[]
getIPs()
private String[]
protected String
protected boolean
protected Map<Download,
BuddyPluginTracker.buddyDownloadData> importFullIDs
(byte[] ids, byte[] states) importShortIDs
(byte[] ids) protected void
protected void
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
protected void
updateLocal
(Set<Download> downloads, int id, Map diff_map, Set<Download> downloads_with_remote_incomplete) protected Map
updateRemote
(Map msg) protected void
-
Field Details
-
buddy
-
downloads_sent
-
downloads_sent_id
private int downloads_sent_id -
tracking_remote
private int tracking_remote -
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
-
-
Constructor Details
-
BuddyTrackingData
-
-
Method Details
-
updateIPs
protected void updateIPs() -
destroy
protected void destroy() -
getLatestIPs
-
getIPs
-
hasDownloadsInCommon
protected boolean hasDownloadsInCommon() -
setAlive
protected void setAlive(boolean alive) -
updateLocal
-
updateRemote
-
updateCommonDownloads
-
updateStatus
protected void updateStatus() -
sendTrackerMessage
-
receiveTrackerMessage
-
exportShortIDs
-
importShortIDs
-
exportFullIDs
-
importFullIDs
protected Map<Download,BuddyPluginTracker.buddyDownloadData> importFullIDs(byte[] ids, byte[] states) -
getDownloadsToTrack
-
removeDownload
-
getStatus
-
log
-
log
-