Interface DefaultRankCalculator
- All Superinterfaces:
Comparable<DefaultRankCalculator>
- All Known Implementing Classes:
RankCalculatorReal
,RankCalculatorSlotReserver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
All of the First Priority rules must matchstatic final int
Any of the First Priority rules must matchstatic final int
Seeding Rank value when download is marked as 0 Peersstatic final int
Rank that complete starts at (and incomplete ends at + 1)static final int
Seeding Rank value when download is marked as S:P Ratio Met for FPstatic final int
Seeding Rank value when download is marked as 0 Peers and FPstatic final int
Ranks below this value are for torrents to be ignored (moved to bottom invalid input: '&' queued)static final String[]
static final int
static final int
Seeding Rank value when download is marked as not queuedstatic final int
Seeding Rank value when download is marked as # Seeds Metstatic final int
Seeding Rank value when download is marked as P:1S Ratio Metstatic final int
Seeding Rank value when download is marked as Share Ratio Metstatic final int
Maximum ranking for time queue mode. -
Method Summary
Modifier and TypeMethodDescriptionboolean
activationRequest
(Runnable to_do) void
addStateAttributeListener
(DownloadManagerStateAttributeListener l, String attribute, int event_type) void
appendTrace
(String str) int
boolean
int
void
destroy()
boolean
boolean
getAggregatedScrapeResult
(boolean b) boolean
int
long
int
long
long
int[]
int
int
boolean
long
getName()
int
long
int
int
long
int
getState()
long
getTrace()
long
getUserData
(Object key) void
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isMoving()
boolean
isQueued()
void
moveTo
(int pos) void
void
removeStateAttributeListener
(DownloadManagerStateAttributeListener l, String attribute, int event_type) void
void
restart()
void
scrapeReceived
(DownloadScrapeResult result) boolean
void
setDLRActive
(long time) void
setDLRComplete
(long time) void
void
setPosition
(int pos) void
void
setUserData
(Object key, Object value) void
start()
void
boolean
boolean
updateLightSeedEligibility
(boolean b) Methods inherited from interface java.lang.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() -
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()
-