|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aelitis.azureus.core.networkmanager.impl.TransferProcessor
public class TransferProcessor
Field Summary | |
---|---|
static int |
TYPE_DOWNLOAD
|
static int |
TYPE_UPLOAD
|
Constructor Summary | |
---|---|
TransferProcessor(int _processor_type,
LimitedRateGroup max_rate_limit,
boolean multi_threaded)
Create new transfer processor for the given read/write type, limited to the given max rate. |
Method Summary | |
---|---|
void |
addRateLimiter(NetworkConnectionBase connection,
LimitedRateGroup group)
|
void |
deregisterPeerConnection(NetworkConnectionBase connection)
Cancel upload handling for the given peer connection. |
void |
downgradePeerConnection(NetworkConnectionBase connection)
Downgrade the given connection back to a normal-speed transfer handler. |
java.util.List<NetworkConnectionBase> |
getConnections()
|
RateHandler |
getRateHandler()
|
RateHandler |
getRateHandler(NetworkConnectionBase connection)
|
boolean |
isRegistered(NetworkConnectionBase connection)
|
void |
registerPeerConnection(NetworkConnectionBase connection,
boolean upload)
Register peer connection for upload handling. |
void |
removeRateLimiter(NetworkConnectionBase connection,
LimitedRateGroup group)
|
void |
setRateLimiterFreezeState(boolean frozen)
|
void |
upgradePeerConnection(NetworkConnectionBase connection,
int partition_id)
Upgrade the given connection to a high-speed transfer handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_UPLOAD
public static final int TYPE_DOWNLOAD
Constructor Detail |
---|
public TransferProcessor(int _processor_type, LimitedRateGroup max_rate_limit, boolean multi_threaded)
processor_type
- read or write processormax_rate_limit
- to useMethod Detail |
---|
public void registerPeerConnection(NetworkConnectionBase connection, boolean upload)
connection
- to registergroup
- rate limit grouppublic java.util.List<NetworkConnectionBase> getConnections()
public boolean isRegistered(NetworkConnectionBase connection)
public void deregisterPeerConnection(NetworkConnectionBase connection)
connection
- to cancelpublic void setRateLimiterFreezeState(boolean frozen)
public void addRateLimiter(NetworkConnectionBase connection, LimitedRateGroup group)
public void removeRateLimiter(NetworkConnectionBase connection, LimitedRateGroup group)
public void upgradePeerConnection(NetworkConnectionBase connection, int partition_id)
connection
- to upgradepublic void downgradePeerConnection(NetworkConnectionBase connection)
connection
- to downgradepublic RateHandler getRateHandler()
public RateHandler getRateHandler(NetworkConnectionBase connection)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |