Class UploadSlotManager
java.lang.Object
com.biglybt.core.peermanager.uploadslots.UploadSlotManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
(package private) int
private long
private static final int
private static final int
private static final int
private static final UploadSlotManager
private long
private final UploadSessionPicker
private final UploadSlot[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deregisterHelper
(UploadHelper helper) private UploadSession
getNextBestSession
(LinkedList best) static UploadSlotManager
private boolean
isAlreadySlotted
(UploadSession session) private UploadSession
private void
private void
process()
void
registerHelper
(UploadHelper helper) void
updateHelper
(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()
-