Interface DefaultRankCalculator

All Superinterfaces:
Comparable<DefaultRankCalculator>
All Known Implementing Classes:
RankCalculatorReal, RankCalculatorSlotReserver

public interface DefaultRankCalculator extends Comparable<DefaultRankCalculator>
  • Field Details

    • FIRSTPRIORITY_ALL

      static final int FIRSTPRIORITY_ALL
      All of the First Priority rules must match
      See Also:
    • FIRSTPRIORITY_ANY

      static final int FIRSTPRIORITY_ANY
      Any 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_AT
      Rank that complete starts at (and incomplete ends at + 1)
      See Also:
    • SR_TIMED_QUEUED_ENDS_AT

      static final int SR_TIMED_QUEUED_ENDS_AT
      Maximum ranking for time queue mode. 1 unit is a second
      See Also:
    • SR_IGNORED_LESS_THAN

      static final int SR_IGNORED_LESS_THAN
      Ranks below this value are for torrents to be ignored (moved to bottom invalid input: '&' queued)
      See Also:
    • SR_NOTQUEUED

      static final int SR_NOTQUEUED
      Seeding Rank value when download is marked as not queued
      See Also:
    • 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:
    • SR_RATIOMET

      static final int SR_RATIOMET
      Seeding Rank value when download is marked as P:1S Ratio Met
      See Also:
    • SR_NUMSEEDSMET

      static final int SR_NUMSEEDSMET
      Seeding Rank value when download is marked as # Seeds Met
      See Also:
    • SR_FP0PEERS

      static final int SR_FP0PEERS
      Seeding Rank value when download is marked as 0 Peers and FP
      See Also:
    • SR_0PEERS

      static final int SR_0PEERS
      Seeding Rank value when download is marked as 0 Peers
      See Also:
    • SR_SHARERATIOMET

      static final int SR_SHARERATIOMET
      Seeding Rank value when download is marked as Share Ratio Met
      See Also:
    • SR_NOSCRAPE

      static final int SR_NOSCRAPE
      See Also:
    • SR_NEGATIVE_DEBUG

      static final String[] 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

      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()
    • getRemainingExcludingDND

      long getRemainingExcludingDND()
    • getFilePriorityStats

      int[] getFilePriorityStats()
    • 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(Runnable to_do)
    • getTagsWithDLLimits

      TagFeatureRateLimit[] getTagsWithDLLimits()
    • getTagsWithCDLimits

      TagFeatureRateLimit[] getTagsWithCDLimits()
    • 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

      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

      void appendTrace(String str)
    • getTrace

      String getTrace()
    • getRelatedTo

      Object getRelatedTo()
    • compareToIgnoreStopped

      int compareToIgnoreStopped(DefaultRankCalculator other)
    • getUserData

      Object getUserData(Object key)
    • setUserData

      void setUserData(Object key, Object value)
    • destroy

      void destroy()