|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.speedmanager.impl.v2.TransferMode
public class TransferMode
Is the application in a "download" mode? Or is it in a "seeding" mode? This is used to determine up we cut back on upload bandwidth limit. Here is how to determine the mode. If the download rate is LOW compared to the capacity for five minutes continously then it will be considered in a SEEDING mode. If the download bandwidth ever goes into the MED range then it switches to DOWNLOADING mode immediately. The application will favor DOWNLOADING mode to SEEDING mode.
Constructor Summary | |
---|---|
TransferMode()
|
Method Summary | |
---|---|
com.aelitis.azureus.core.speedmanager.impl.v2.TransferMode.State |
getMode()
|
String |
getString()
|
boolean |
isConfTestingLimits()
We have two types of limit testing. |
boolean |
isDownloadMode()
Are we in downloading mode? |
void |
setMode(com.aelitis.azureus.core.speedmanager.impl.v2.TransferMode.State newMode)
|
void |
updateStatus(SaturatedMode downloadBandwidth)
If the download bandwidth is ever in MED or above switch immediately to DOWNLOADING mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransferMode()
Method Detail |
---|
public void updateStatus(SaturatedMode downloadBandwidth)
downloadBandwidth
- - current download status.public String getString()
public com.aelitis.azureus.core.speedmanager.impl.v2.TransferMode.State getMode()
public void setMode(com.aelitis.azureus.core.speedmanager.impl.v2.TransferMode.State newMode)
public boolean isDownloadMode()
public boolean isConfTestingLimits()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |