Interface DefaultRankCalculator
- All Superinterfaces:
Comparable<DefaultRankCalculator>
- All Known Implementing Classes:
RankCalculatorReal, RankCalculatorSlotReserver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intAll of the First Priority rules must matchstatic final intAny of the First Priority rules must matchstatic final intSeeding Rank value when download is marked as 0 Peersstatic final intRank that complete starts at (and incomplete ends at + 1)static final intSeeding Rank value when download is marked as S:P Ratio Met for FPstatic final intSeeding Rank value when download is marked as 0 Peers and FPstatic final intRanks below this value are for torrents to be ignored (moved to bottom invalid input: '&' queued)static final String[]static final intstatic final intSeeding Rank value when download is marked as not queuedstatic final intSeeding Rank value when download is marked as # Seeds Metstatic final intSeeding Rank value when download is marked as P:1S Ratio Metstatic final intSeeding Rank value when download is marked as Share Ratio Metstatic final intMaximum ranking for time queue mode. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivationRequest(Runnable to_do) voidaddStateAttributeListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) voidappendTrace(String str) intbooleanintvoiddestroy()booleanbooleangetAggregatedScrapeResult(boolean b) booleanintlongintlonglongint[]intintbooleanlonglonggetName()intlongintintlongintgetState()longgetTrace()longgetUserData(Object key) voidbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisMoving()booleanisQueued()voidmoveTo(int pos) voidvoidremoveStateAttributeListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) voidvoidvoidscrapeReceived(DownloadScrapeResult result) booleanvoidsetDLRActive(long time) voidsetDLRComplete(long time) voidvoidsetPosition(int pos) voidvoidsetUserData(Object key, Object value) voidvoidstopAndQueue(String reason) booleanbooleanupdateLightSeedEligibility(boolean b) Methods inherited from interface Comparable
compareTo
-
Field Details
-
FIRSTPRIORITY_ALL
static final int FIRSTPRIORITY_ALLAll of the First Priority rules must match- See Also:
-
FIRSTPRIORITY_ANY
static final int FIRSTPRIORITY_ANYAny of the First Priority rules must match- See Also:
-
DOWNLOAD_ORDER_INDEX
static final int DOWNLOAD_ORDER_INDEX- See Also:
-
DOWNLOAD_ORDER_SEED_COUNT
static final int DOWNLOAD_ORDER_SEED_COUNT- See Also:
-
DOWNLOAD_ORDER_SPEED
static final int DOWNLOAD_ORDER_SPEED- See Also:
-
DOWNLOAD_ORDER_REVERSE_SEED_COUNT
static final int DOWNLOAD_ORDER_REVERSE_SEED_COUNT- See Also:
-
DOWNLOAD_ORDER_SIZE
static final int DOWNLOAD_ORDER_SIZE- See Also:
-
DOWNLOAD_ORDER_REVERSE_SIZE
static final int DOWNLOAD_ORDER_REVERSE_SIZE- See Also:
-
DOWNLOAD_ORDER_ETA
static final int DOWNLOAD_ORDER_ETA- See Also:
-
DOWNLOAD_ORDER_FILE_PRIORITIES
static final int DOWNLOAD_ORDER_FILE_PRIORITIES- See Also:
-
DOWNLOAD_ORDER_REMAINING
static final int DOWNLOAD_ORDER_REMAINING- See Also:
-
SR_COMPLETE_STARTS_AT
static final int SR_COMPLETE_STARTS_ATRank that complete starts at (and incomplete ends at + 1)- See Also:
-
SR_TIMED_QUEUED_ENDS_AT
static final int SR_TIMED_QUEUED_ENDS_ATMaximum ranking for time queue mode. 1 unit is a second- See Also:
-
SR_IGNORED_LESS_THAN
static final int SR_IGNORED_LESS_THANRanks below this value are for torrents to be ignored (moved to bottom invalid input: '&' queued)- See Also:
-
SR_NOTQUEUED
static final int SR_NOTQUEUEDSeeding Rank value when download is marked as not queued- See Also:
-
SR_FP_SPRATIOMET
static final int SR_FP_SPRATIOMETSeeding Rank value when download is marked as S:P Ratio Met for FP- See Also:
-
SR_RATIOMET
static final int SR_RATIOMETSeeding Rank value when download is marked as P:1S Ratio Met- See Also:
-
SR_NUMSEEDSMET
static final int SR_NUMSEEDSMETSeeding Rank value when download is marked as # Seeds Met- See Also:
-
SR_FP0PEERS
static final int SR_FP0PEERSSeeding Rank value when download is marked as 0 Peers and FP- See Also:
-
SR_0PEERS
static final int SR_0PEERSSeeding Rank value when download is marked as 0 Peers- See Also:
-
SR_SHARERATIOMET
static final int SR_SHARERATIOMETSeeding Rank value when download is marked as Share Ratio Met- See Also:
-
SR_NOSCRAPE
static final int SR_NOSCRAPE- See Also:
-
SR_NEGATIVE_DEBUG
-
-
Method Details
-
getState
int getState() -
getCoreState
int getCoreState() -
getName
String getName() -
supportsPosition
boolean supportsPosition() -
getPosition
int getPosition() -
setPosition
void setPosition(int pos) -
moveTo
void moveTo(int pos) -
isForceActive
boolean isForceActive() -
isQueued
boolean isQueued() -
isDownloading
boolean isDownloading() -
isChecking
boolean isChecking() -
isMoving
boolean isMoving() -
isForceStart
boolean isForceStart() -
isComplete
boolean isComplete() -
isControllable
boolean isControllable() -
initialize
- Throws:
DownloadException
-
start
- Throws:
DownloadException
-
restart
- Throws:
DownloadException
-
stopAndQueue
- Throws:
DownloadException
-
isFirstPriority
boolean isFirstPriority() -
getCachedIsFP
boolean getCachedIsFP() -
getSeedingRank
int getSeedingRank() -
getMinTimeSeedingMillis
long getMinTimeSeedingMillis() -
getActivelySeeding
boolean getActivelySeeding() -
getActivelyDownloading
boolean getActivelyDownloading() -
getUploadAverage
long getUploadAverage() -
getDownloadAverage
long getDownloadAverage() -
getTimeStarted
long getTimeStarted() -
getSizeExcludingDND
long getSizeExcludingDND() -
getRemainingExcludingDND
long getRemainingExcludingDND() -
getFilePriorityStats
int[] getFilePriorityStats() -
getAggregatedScrapeResult
-
scrapeResultOk
boolean scrapeResultOk() -
calcSeedsNoUs
int calcSeedsNoUs() -
changeChecker
boolean changeChecker() -
recalcSeedingRank
void recalcSeedingRank() -
getLightSeedEligibility
long getLightSeedEligibility() -
updateLightSeedEligibility
boolean updateLightSeedEligibility(boolean b) -
getReservedSlot
RankCalculatorSlotReserver getReservedSlot() -
setReservedSlot
-
activationRequest
-
getTagsWithDLLimits
TagFeatureRateLimit[] getTagsWithDLLimits() -
getTagsWithCDLimits
TagFeatureRateLimit[] getTagsWithCDLimits() -
getLastScrapeResultOk
boolean getLastScrapeResultOk() -
scrapeReceived
-
getLastModifiedScrapeResultPeers
int getLastModifiedScrapeResultPeers() -
getLastModifiedScrapeResultSeeds
int getLastModifiedScrapeResultSeeds() -
setDLRInactive
void setDLRInactive() -
setDLRActive
void setDLRActive(long time) -
setDLRComplete
void setDLRComplete(long time) -
getDLRLastTestTime
long getDLRLastTestTime() -
getDLRLastTestSpeed
int getDLRLastTestSpeed() -
getDLRLastTestETA
long getDLRLastTestETA() -
getDLRTrace
String getDLRTrace() -
addStateAttributeListener
void addStateAttributeListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) -
removeStateAttributeListener
void removeStateAttributeListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) -
getExplainFP
String getExplainFP() -
getExplainSR
String getExplainSR() -
resetTrace
void resetTrace() -
appendTrace
-
getTrace
String getTrace() -
getRelatedTo
Object getRelatedTo() -
compareToIgnoreStopped
-
getUserData
-
setUserData
-
destroy
void destroy()
-