|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PeerManager
Method Summary | |
---|---|
void |
addListener(PeerManagerListener l)
|
void |
addListener(PeerManagerListener2 l)
|
void |
addPeer(Peer peer)
|
void |
addPeer(String ip_address,
int port)
Add a new peer, using the default internal Peer implementation (like for peers given in announce reply), using the given address and port. |
void |
addPeer(String ip_address,
int tcp_port,
boolean use_crypto)
|
void |
addPeer(String ip_address,
int tcp_port,
int udp_port,
boolean use_crypto)
|
void |
addPeer(String ip_address,
int tcp_port,
int udp_port,
boolean use_crypto,
Map<Object,Object> user_data)
|
PeerStats |
createPeerStats(Peer peer)
|
DiskManager |
getDiskManager()
|
Download |
getDownload()
|
int |
getDownloadRateLimitBytesPerSecond()
|
Peer[] |
getPeers()
|
Peer[] |
getPeers(String address)
returns the peers for the given address |
PeerDescriptor[] |
getPendingPeers()
Get the list of currently pending peers |
PeerDescriptor[] |
getPendingPeers(String address)
returns the pending connections to the given address |
Piece[] |
getPieces()
|
PeerManagerStats |
getStats()
|
int |
getUploadRateLimitBytesPerSecond()
|
boolean |
isSeeding()
|
boolean |
isSuperSeeding()
|
void |
peerDiscovered(String peer_source,
String ip_address,
int tcp_port,
int udp_port,
boolean use_crypto)
|
void |
removeListener(PeerManagerListener l)
|
void |
removeListener(PeerManagerListener2 l)
|
void |
removePeer(Peer peer)
|
void |
requestCancelled(PeerReadRequest request,
Peer sender)
|
void |
requestComplete(PeerReadRequest request,
PooledByteBuffer data,
Peer sender)
|
Method Detail |
---|
Download getDownload() throws DownloadException
DownloadException
void addPeer(Peer peer)
void addPeer(String ip_address, int port)
ip_address
- of peer to injectport
- of peer to injectvoid addPeer(String ip_address, int tcp_port, boolean use_crypto)
void addPeer(String ip_address, int tcp_port, int udp_port, boolean use_crypto)
void addPeer(String ip_address, int tcp_port, int udp_port, boolean use_crypto, Map<Object,Object> user_data)
void peerDiscovered(String peer_source, String ip_address, int tcp_port, int udp_port, boolean use_crypto)
void removePeer(Peer peer)
Peer[] getPeers()
Peer[] getPeers(String address)
address
-
PeerDescriptor[] getPendingPeers()
PeerDescriptor[] getPendingPeers(String address)
address
-
DiskManager getDiskManager()
PeerManagerStats getStats()
boolean isSeeding()
boolean isSuperSeeding()
PeerStats createPeerStats(Peer peer)
void requestComplete(PeerReadRequest request, PooledByteBuffer data, Peer sender)
void requestCancelled(PeerReadRequest request, Peer sender)
Piece[] getPieces()
int getUploadRateLimitBytesPerSecond()
int getDownloadRateLimitBytesPerSecond()
void addListener(PeerManagerListener l)
void removeListener(PeerManagerListener l)
void addListener(PeerManagerListener2 l)
void removeListener(PeerManagerListener2 l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |