|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aelitis.azureus.core.peermanager.unchoker.SeedingUnchoker
public class SeedingUnchoker
Unchoker implementation to be used while in seeding mode.
Constructor Summary | |
---|---|
protected |
SeedingUnchoker()
|
Method Summary | |
---|---|
void |
calculateUnchokes(int max_to_unchoke,
java.util.ArrayList<PEPeer> all_peers,
boolean force_refresh,
boolean check_priority_connections,
boolean do_high_latency_peers)
Perform peer choke, unchoke and optimistic calculations |
java.util.ArrayList<PEPeer> |
getChokes()
Get the list of peers calculated to be choked. |
java.util.ArrayList<PEPeer> |
getImmediateUnchokes(int max_to_unchoke,
java.util.ArrayList<PEPeer> all_peers)
Get any unchokes that should be performed immediately. |
java.util.ArrayList<PEPeer> |
getUnchokes()
Get the list of peers calculated to be unchoked. |
boolean |
isSeedingUnchoker()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SeedingUnchoker()
Method Detail |
---|
public boolean isSeedingUnchoker()
isSeedingUnchoker
in interface Unchoker
public java.util.ArrayList<PEPeer> getImmediateUnchokes(int max_to_unchoke, java.util.ArrayList<PEPeer> all_peers)
Unchoker
getImmediateUnchokes
in interface Unchoker
max_to_unchoke
- maximum number of peers allowed to be unchokedall_peers
- list of peers to choose from
public void calculateUnchokes(int max_to_unchoke, java.util.ArrayList<PEPeer> all_peers, boolean force_refresh, boolean check_priority_connections, boolean do_high_latency_peers)
Unchoker
calculateUnchokes
in interface Unchoker
max_to_unchoke
- maximum number of peers allowed to be unchokedall_peers
- list of peers to choose fromforce_refresh
- force a refresh of optimistic unchokespublic java.util.ArrayList<PEPeer> getChokes()
Unchoker
getChokes
in interface Unchoker
public java.util.ArrayList<PEPeer> getUnchokes()
Unchoker
getUnchokes
in interface Unchoker
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |