com.aelitis.azureus.core.peermanager
Class PeerManager

java.lang.Object
  extended by com.aelitis.azureus.core.peermanager.PeerManager
All Implemented Interfaces:
AzureusCoreStatsProvider

public class PeerManager
extends Object
implements AzureusCoreStatsProvider


Method Summary
static PeerManager getSingleton()
          Get the singleton instance of the peer manager.
protected  void init()
           
 PeerManagerRegistration manualMatchHash(InetSocketAddress address, byte[] hash)
           
 PeerManagerRegistration manualMatchLink(InetSocketAddress address, String link)
           
 void manualRoute(PeerManagerRegistration _registration, NetworkConnection _connection, PeerManagerRoutingListener _listener)
           
protected static void registerForTimeouts(com.aelitis.azureus.core.peermanager.PeerManager.PeerManagerRegistrationImpl reg)
           
 PeerManagerRegistration registerLegacyManager(HashWrapper hash, PeerManagerRegistrationAdapter adapter)
           
 void updateStats(Set types, Map values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerForTimeouts

protected static void registerForTimeouts(com.aelitis.azureus.core.peermanager.PeerManager.PeerManagerRegistrationImpl reg)

getSingleton

public static PeerManager getSingleton()
Get the singleton instance of the peer manager.

Returns:
the peer manager

updateStats

public void updateStats(Set types,
                        Map values)
Specified by:
updateStats in interface AzureusCoreStatsProvider

init

protected void init()

manualMatchHash

public PeerManagerRegistration manualMatchHash(InetSocketAddress address,
                                               byte[] hash)

manualMatchLink

public PeerManagerRegistration manualMatchLink(InetSocketAddress address,
                                               String link)

manualRoute

public void manualRoute(PeerManagerRegistration _registration,
                        NetworkConnection _connection,
                        PeerManagerRoutingListener _listener)

registerLegacyManager

public PeerManagerRegistration registerLegacyManager(HashWrapper hash,
                                                     PeerManagerRegistrationAdapter adapter)