|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.plugins.startstoprules.defaultplugin.DefaultRankCalculator
public class DefaultRankCalculator
Field Summary | |
---|---|
protected Download |
dl
|
static int |
DOWNLOAD_ORDER_INDEX
|
static int |
DOWNLOAD_ORDER_SEED_COUNT
|
static int |
DOWNLOAD_ORDER_SPEED
|
static int |
FIRSTPRIORITY_ALL
All of the First Priority rules must match |
static int |
FIRSTPRIORITY_ANY
Any of the First Priority rules must match |
protected static int |
iRankType
Ranking System to use |
String |
sExplainFP
Public for tooltip to access it |
String |
sExplainSR
Public for tooltip to access it |
static int |
SR_0PEERS
Seeding Rank value when download is marked as 0 Peers |
static 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 FP |
static int |
SR_FP0PEERS
Seeding Rank value when download is marked as 0 Peers and FP |
static int |
SR_IGNORED_LESS_THAN
Ranks below this value are for torrents to be ignored (moved to bottom & queued) |
static String[] |
SR_NEGATIVE_DEBUG
|
static int |
SR_NOTQUEUED
Seeding Rank value when download is marked as not queued |
static int |
SR_NUMSEEDSMET
Seeding Rank value when download is marked as # Seeds Met |
static int |
SR_RATIOMET
Seeding Rank value when download is marked as P:1S Ratio Met |
static int |
SR_SHARERATIOMET
Seeding Rank value when download is marked as Share Ratio Met |
static int |
SR_TIMED_QUEUED_ENDS_AT
Maximimum ranking for time queue mode. |
String |
sTrace
Public for tooltip to access it |
Fields inherited from interface org.gudy.azureus2.core3.download.DownloadManagerStateAttributeListener |
---|
WILL_BE_READ, WRITTEN |
Constructor Summary | |
---|---|
DefaultRankCalculator(StartStopRulesDefaultPlugin _rules,
Download _dl)
Default Initializer |
Method Summary | |
---|---|
void |
attributeEventOccurred(DownloadManager download,
String attribute,
int event_type)
|
boolean |
changeChecker()
Check Seeders for various changes not triggered by listeners |
int |
compareTo(Object obj)
Sort first by SeedingRank Descending, then by Position Ascending. |
protected void |
destroy()
|
boolean |
getActivelyDownloading()
Retrieves whether the torrent is "actively" downloading |
boolean |
getActivelySeeding()
Retrieves whether the torrent is "actively" seeding |
boolean |
getCachedIsFP()
|
int |
getDLRLastTestSpeed()
|
long |
getDLRLastTestTime()
|
String |
getDLRTrace()
|
Download |
getDownloadObject()
|
boolean |
isFirstPriority()
Does the torrent match First Priority criteria? |
boolean |
isForceActive()
|
boolean |
isQueued()
|
int |
recalcSeedingRank()
Assign Seeding Rank based on RankType |
static void |
reloadConfigParams(PluginConfig cfg)
Load config values into the static variables |
void |
setDLRActive(long time)
|
void |
setDLRComplete(long time)
|
void |
setDLRInactive()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FIRSTPRIORITY_ALL
public static final int FIRSTPRIORITY_ANY
public static final int DOWNLOAD_ORDER_INDEX
public static final int DOWNLOAD_ORDER_SEED_COUNT
public static final int DOWNLOAD_ORDER_SPEED
public static final int SR_COMPLETE_STARTS_AT
public static final int SR_TIMED_QUEUED_ENDS_AT
public static final int SR_IGNORED_LESS_THAN
public static final int SR_NOTQUEUED
public static final int SR_FP_SPRATIOMET
public static final int SR_RATIOMET
public static final int SR_NUMSEEDSMET
public static final int SR_FP0PEERS
public static final int SR_0PEERS
public static final int SR_SHARERATIOMET
public static final String[] SR_NEGATIVE_DEBUG
protected static int iRankType
protected final Download dl
public String sExplainFP
public String sExplainSR
public String sTrace
Constructor Detail |
---|
public DefaultRankCalculator(StartStopRulesDefaultPlugin _rules, Download _dl)
_rules
- _dl
- Method Detail |
---|
public void attributeEventOccurred(DownloadManager download, String attribute, int event_type)
attributeEventOccurred
in interface DownloadManagerStateAttributeListener
protected void destroy()
public static void reloadConfigParams(PluginConfig cfg)
cfg
- public int compareTo(Object obj)
compareTo
in interface Comparable
public Download getDownloadObject()
public boolean isForceActive()
public boolean isQueued()
public boolean getActivelyDownloading()
public boolean getActivelySeeding()
public int recalcSeedingRank()
public boolean isFirstPriority()
public boolean getCachedIsFP()
public void setDLRInactive()
public void setDLRActive(long time)
public void setDLRComplete(long time)
public long getDLRLastTestTime()
public int getDLRLastTestSpeed()
public String getDLRTrace()
public String toString()
toString
in class Object
public boolean changeChecker()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |