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 java.lang.Object
implements AzureusCoreStatsProvider


Method Summary
static PeerManager getSingleton()
          Get the singleton instance of the peer manager.
protected  void init()
           
 PeerManagerRegistration manualMatchHash(java.net.InetSocketAddress address, byte[] hash)
           
 PeerManagerRegistration manualMatchLink(java.net.InetSocketAddress address, java.lang.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(java.util.Set types, java.util.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(java.util.Set types,
                        java.util.Map values)
Specified by:
updateStats in interface AzureusCoreStatsProvider

init

protected void init()

manualMatchHash

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

manualMatchLink

public PeerManagerRegistration manualMatchLink(java.net.InetSocketAddress address,
                                               java.lang.String link)

manualRoute

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

registerLegacyManager

public PeerManagerRegistration registerLegacyManager(HashWrapper hash,
                                                     PeerManagerRegistrationAdapter adapter)