Class TestPingSourceImpl.testSource
java.lang.Object
com.biglybt.core.speedmanager.impl.TestPingSourceImpl.testSource
- All Implemented Interfaces:
DHTSpeedTesterContact
- Enclosing class:
TestPingSourceImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(DHTSpeedTesterContactListener listener) voiddestroy()If you don't like the ping times from this contact you can always kill it, a new one will be created in its placeprotected voidfailed()intprotected intgetRTT()voidremoveListener(DHTSpeedTesterContactListener listener) voidsetPingPeriod(int period_secs) protected voidsetRTT(int _rtt)
-
Field Details
-
address
-
listeners
-
rtt
private int rtt
-
-
Constructor Details
-
testSource
protected testSource()
-
-
Method Details
-
getAddress
- Specified by:
getAddressin interfaceDHTSpeedTesterContact
-
getString
- Specified by:
getStringin interfaceDHTSpeedTesterContact
-
getPingPeriod
public int getPingPeriod()- Specified by:
getPingPeriodin interfaceDHTSpeedTesterContact
-
setPingPeriod
public void setPingPeriod(int period_secs) - Specified by:
setPingPeriodin interfaceDHTSpeedTesterContact
-
getRTT
protected int getRTT() -
setRTT
protected void setRTT(int _rtt) -
failed
protected void failed() -
destroy
public void destroy()Description copied from interface:DHTSpeedTesterContactIf you don't like the ping times from this contact you can always kill it, a new one will be created in its place- Specified by:
destroyin interfaceDHTSpeedTesterContact
-
addListener
- Specified by:
addListenerin interfaceDHTSpeedTesterContact
-
removeListener
- Specified by:
removeListenerin interfaceDHTSpeedTesterContact
-