Class UploadSlotManager
java.lang.Object
com.biglybt.core.peermanager.uploadslots.UploadSlotManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean(package private) intprivate longprivate static final intprivate static final intprivate static final intprivate static final UploadSlotManagerprivate longprivate final UploadSessionPickerprivate final UploadSlot[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterHelper(UploadHelper helper) private UploadSessiongetNextBestSession(LinkedList best) static UploadSlotManagerprivate booleanisAlreadySlotted(UploadSession session) private UploadSessionprivate voidprivate voidprocess()voidregisterHelper(UploadHelper helper) voidupdateHelper(UploadHelper helper) Notify of helper state change (i.e.
-
Field Details
-
EXPIRE_NORMAL
private static final int EXPIRE_NORMAL- See Also:
-
EXPIRE_OPTIMISTIC
private static final int EXPIRE_OPTIMISTIC- See Also:
-
EXPIRE_SEED
private static final int EXPIRE_SEED- See Also:
-
AUTO_SLOT_ENABLE
public static final boolean AUTO_SLOT_ENABLE- See Also:
-
last_process_time
private long last_process_time -
instance
-
picker
-
slots
-
current_round
private long current_round -
count
int count
-
-
Constructor Details
-
UploadSlotManager
private UploadSlotManager()
-
-
Method Details
-
getSingleton
-
registerHelper
-
deregisterHelper
-
updateHelper
Notify of helper state change (i.e. priority changed)- Parameters:
helper-
-
process
private void process() -
getNextBestSession
-
pickOptSession
-
isAlreadySlotted
-
printSlotStats
private void printSlotStats()
-