FileDocCategorySizeDatePackage
PeerManager.javaAPI DocAzureus 3.0.3.42731Fri Sep 07 11:15:20 BST 2007org.gudy.azureus2.plugins.peers

PeerManager

public interface PeerManager
author
parg

Fields Summary
Constructors Summary
Methods Summary
public voidaddListener(PeerManagerListener l)

public voidaddPeer(Peer peer)

public voidaddPeer(java.lang.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.

param
ip_address of peer to inject
param
port of peer to inject

public voidaddPeer(java.lang.String ip_address, int tcp_port, boolean use_crypto)

public voidaddPeer(java.lang.String ip_address, int tcp_port, int udp_port, boolean use_crypto)

public PeerStatscreatePeerStats(Peer peer)

public DiskManagergetDiskManager()

public DownloadgetDownload()

public intgetDownloadRateLimitBytesPerSecond()

public Peer[]getPeers()

public Peer[]getPeers(java.lang.String address)
returns the peers for the given address

param
address
return

public PeerDescriptor[]getPendingPeers(java.lang.String address)
returns the pending connections to the given address

param
address
return

public Piece[]getPieces()

public PeerManagerStatsgetStats()

public intgetUploadRateLimitBytesPerSecond()

public booleanisSeeding()

public booleanisSuperSeeding()

public voidremoveListener(PeerManagerListener l)

public voidremovePeer(Peer peer)

public voidrequestCancelled(PeerReadRequest request, Peer sender)

public voidrequestComplete(PeerReadRequest request, org.gudy.azureus2.plugins.utils.PooledByteBuffer data, Peer sender)