Interface DefaultRankCalculator
-
- All Superinterfaces:
java.lang.Comparable<DefaultRankCalculator>
- All Known Implementing Classes:
RankCalculatorReal
,RankCalculatorSlotReserver
public interface DefaultRankCalculator extends java.lang.Comparable<DefaultRankCalculator>
-
-
Field Summary
Fields Modifier and Type Field Description static int
DOWNLOAD_ORDER_ETA
static int
DOWNLOAD_ORDER_INDEX
static int
DOWNLOAD_ORDER_REVERSE_SEED_COUNT
static int
DOWNLOAD_ORDER_REVERSE_SIZE
static int
DOWNLOAD_ORDER_SEED_COUNT
static int
DOWNLOAD_ORDER_SIZE
static int
DOWNLOAD_ORDER_SPEED
static int
FIRSTPRIORITY_ALL
All of the First Priority rules must matchstatic int
FIRSTPRIORITY_ANY
Any of the First Priority rules must matchstatic int
SR_0PEERS
Seeding Rank value when download is marked as 0 Peersstatic int
SR_COMPLETE_STARTS_AT
Rank that complete starts at (and incomplete ends at + 1)static int
SR_FP_SPRATIOMET
Seeding Rank value when download is marked as S:P Ratio Met for FPstatic int
SR_FP0PEERS
Seeding Rank value when download is marked as 0 Peers and FPstatic int
SR_IGNORED_LESS_THAN
Ranks below this value are for torrents to be ignored (moved to bottom & queued)static java.lang.String[]
SR_NEGATIVE_DEBUG
static int
SR_NOSCRAPE
static int
SR_NOTQUEUED
Seeding Rank value when download is marked as not queuedstatic int
SR_NUMSEEDSMET
Seeding Rank value when download is marked as # Seeds Metstatic int
SR_RATIOMET
Seeding Rank value when download is marked as P:1S Ratio Metstatic int
SR_SHARERATIOMET
Seeding Rank value when download is marked as Share Ratio Metstatic int
SR_TIMED_QUEUED_ENDS_AT
Maximimum ranking for time queue mode.
-
Method Summary
-
-
-
Field Detail
-
FIRSTPRIORITY_ALL
static final int FIRSTPRIORITY_ALL
All of the First Priority rules must match- See Also:
- Constant Field Values
-
FIRSTPRIORITY_ANY
static final int FIRSTPRIORITY_ANY
Any of the First Priority rules must match- See Also:
- Constant Field Values
-
DOWNLOAD_ORDER_INDEX
static final int DOWNLOAD_ORDER_INDEX
- See Also:
- Constant Field Values
-
DOWNLOAD_ORDER_SEED_COUNT
static final int DOWNLOAD_ORDER_SEED_COUNT
- See Also:
- Constant Field Values
-
DOWNLOAD_ORDER_SPEED
static final int DOWNLOAD_ORDER_SPEED
- See Also:
- Constant Field Values
-
DOWNLOAD_ORDER_REVERSE_SEED_COUNT
static final int DOWNLOAD_ORDER_REVERSE_SEED_COUNT
- See Also:
- Constant Field Values
-
DOWNLOAD_ORDER_SIZE
static final int DOWNLOAD_ORDER_SIZE
- See Also:
- Constant Field Values
-
DOWNLOAD_ORDER_REVERSE_SIZE
static final int DOWNLOAD_ORDER_REVERSE_SIZE
- See Also:
- Constant Field Values
-
DOWNLOAD_ORDER_ETA
static final int DOWNLOAD_ORDER_ETA
- See Also:
- Constant Field Values
-
SR_COMPLETE_STARTS_AT
static final int SR_COMPLETE_STARTS_AT
Rank that complete starts at (and incomplete ends at + 1)- See Also:
- Constant Field Values
-
SR_TIMED_QUEUED_ENDS_AT
static final int SR_TIMED_QUEUED_ENDS_AT
Maximimum ranking for time queue mode. 1 unit is a second- See Also:
- Constant Field Values
-
SR_IGNORED_LESS_THAN
static final int SR_IGNORED_LESS_THAN
Ranks below this value are for torrents to be ignored (moved to bottom & queued)- See Also:
- Constant Field Values
-
SR_NOTQUEUED
static final int SR_NOTQUEUED
Seeding Rank value when download is marked as not queued- See Also:
- Constant Field Values
-
SR_FP_SPRATIOMET
static final int SR_FP_SPRATIOMET
Seeding Rank value when download is marked as S:P Ratio Met for FP- See Also:
- Constant Field Values
-
SR_RATIOMET
static final int SR_RATIOMET
Seeding Rank value when download is marked as P:1S Ratio Met- See Also:
- Constant Field Values
-
SR_NUMSEEDSMET
static final int SR_NUMSEEDSMET
Seeding Rank value when download is marked as # Seeds Met- See Also:
- Constant Field Values
-
SR_FP0PEERS
static final int SR_FP0PEERS
Seeding Rank value when download is marked as 0 Peers and FP- See Also:
- Constant Field Values
-
SR_0PEERS
static final int SR_0PEERS
Seeding Rank value when download is marked as 0 Peers- See Also:
- Constant Field Values
-
SR_SHARERATIOMET
static final int SR_SHARERATIOMET
Seeding Rank value when download is marked as Share Ratio Met- See Also:
- Constant Field Values
-
SR_NOSCRAPE
static final int SR_NOSCRAPE
- See Also:
- Constant Field Values
-
SR_NEGATIVE_DEBUG
static final java.lang.String[] SR_NEGATIVE_DEBUG
-
-
Method Detail
-
getState
int getState()
-
getCoreState
int getCoreState()
-
getName
java.lang.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
void initialize() throws DownloadException
- Throws:
DownloadException
-
start
void start() throws DownloadException
- Throws:
DownloadException
-
restart
void restart() throws DownloadException
- Throws:
DownloadException
-
stopAndQueue
void stopAndQueue() throws DownloadException
- Throws:
DownloadException
-
isFirstPriority
boolean isFirstPriority()
-
getCachedIsFP
boolean getCachedIsFP()
-
getSeedingRank
int getSeedingRank()
-
getActivelySeeding
boolean getActivelySeeding()
-
getActivelyDownloading
boolean getActivelyDownloading()
-
getShareRatio
int getShareRatio()
-
getUploadAverage
long getUploadAverage()
-
getDownloadAverage
long getDownloadAverage()
-
getTimeStarted
long getTimeStarted()
-
getSizeExcludingDND
long getSizeExcludingDND()
-
getAggregatedScrapeResult
DownloadScrapeResult getAggregatedScrapeResult(boolean b)
-
scrapeResultOk
boolean scrapeResultOk()
-
calcSeedsNoUs
int calcSeedsNoUs()
-
changeChecker
boolean changeChecker()
-
recalcSeedingRank
void recalcSeedingRank()
-
getLightSeedEligibility
long getLightSeedEligibility()
-
updateLightSeedEligibility
boolean updateLightSeedEligibility(boolean b)
-
getReservedSlot
RankCalculatorSlotReserver getReservedSlot()
-
setReservedSlot
void setReservedSlot(RankCalculatorSlotReserver slot)
-
activationRequest
boolean activationRequest()
-
getTagsWithDLLimits
TagFeatureRateLimit[] getTagsWithDLLimits()
-
getLastScrapeResultOk
boolean getLastScrapeResultOk()
-
scrapeReceived
void scrapeReceived(DownloadScrapeResult result)
-
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
java.lang.String getDLRTrace()
-
addStateAttributeListener
void addStateAttributeListener(DownloadManagerStateAttributeListener l, java.lang.String attribute, int event_type)
-
removeStateAttributeListener
void removeStateAttributeListener(DownloadManagerStateAttributeListener l, java.lang.String attribute, int event_type)
-
getExplainFP
java.lang.String getExplainFP()
-
getExplainSR
java.lang.String getExplainSR()
-
resetTrace
void resetTrace()
-
appendTrace
void appendTrace(java.lang.String str)
-
getTrace
java.lang.String getTrace()
-
getRelatedTo
java.lang.Object getRelatedTo()
-
destroy
void destroy()
-
-