com.aelitis.azureus.core.speedmanager.impl
Class TestPingSourceImpl

java.lang.Object
  extended by com.aelitis.azureus.core.speedmanager.impl.TestPingSourceImpl
All Implemented Interfaces:
DHTSpeedTester
Direct Known Subclasses:
TestPingSourceRandom

public abstract class TestPingSourceImpl
extends Object
implements DHTSpeedTester


Nested Class Summary
protected  class TestPingSourceImpl.testSource
           
 
Constructor Summary
protected TestPingSourceImpl(SpeedManagerAlgorithmProviderAdapter _adapter)
           
 
Method Summary
protected  void addContact(TestPingSourceImpl.testSource contact)
           
 void addListener(DHTSpeedTesterListener listener)
           
 void destroy()
           
protected  SpeedManagerAlgorithmProviderAdapter getAdapter()
           
 int getContactNumber()
           
protected  void removeContact(TestPingSourceImpl.testSource contact)
           
 void removeListener(DHTSpeedTesterListener listener)
           
 void setContactNumber(int number)
           
protected  void update(TestPingSourceImpl.testSource[] contacts)
           
protected abstract  void updateSources(TestPingSourceImpl.testSource[] sources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestPingSourceImpl

protected TestPingSourceImpl(SpeedManagerAlgorithmProviderAdapter _adapter)
Method Detail

getAdapter

protected SpeedManagerAlgorithmProviderAdapter getAdapter()

update

protected void update(TestPingSourceImpl.testSource[] contacts)

updateSources

protected abstract void updateSources(TestPingSourceImpl.testSource[] sources)

getContactNumber

public int getContactNumber()
Specified by:
getContactNumber in interface DHTSpeedTester

setContactNumber

public void setContactNumber(int number)
Specified by:
setContactNumber in interface DHTSpeedTester

addContact

protected void addContact(TestPingSourceImpl.testSource contact)

removeContact

protected void removeContact(TestPingSourceImpl.testSource contact)

destroy

public void destroy()
Specified by:
destroy in interface DHTSpeedTester

addListener

public void addListener(DHTSpeedTesterListener listener)
Specified by:
addListener in interface DHTSpeedTester

removeListener

public void removeListener(DHTSpeedTesterListener listener)
Specified by:
removeListener in interface DHTSpeedTester