Class NetStatusProtocolTester
java.lang.Object
com.biglybt.plugin.net.netstatus.NetStatusProtocolTester
- All Implemented Interfaces:
DistributedDatabaseTransferHandler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Listprivate static final intprivate static final intprivate DistributedDatabaseprivate DHTPluginprivate static final intprivate static final intprivate NetStatusPluginprivate PluginInterfaceprivate Mapprivate static final intprivate static final intprivate TimerEventPeriodicprivate static final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetStatusProtocolTester(NetStatusPlugin _plugin, PluginInterface _plugin_interface) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToActive(NetStatusProtocolTesterBT tester) protected InetSocketAddressadjustLoopback(InetSocketAddress address) createTester(NetStatusProtocolTesterListener listener) voidvoidread(DistributedDatabaseContact contact, DistributedDatabaseTransferType type, DistributedDatabaseKey ddb_key) protected MapreceiveRequest(InetSocketAddress originator, Map request) protected voidrunTest(NetStatusProtocolTesterListener listener) runTest(String test_address, NetStatusProtocolTesterListener listener) protected MapsendRequest(DistributedDatabaseContact contact, Map request) booleantryTest(NetStatusProtocolTesterBT bt_tester, DistributedDatabaseContact contact) write(DistributedDatabaseContact contact, DistributedDatabaseTransferType type, DistributedDatabaseKey key, DistributedDatabaseValue value)
-
Field Details
-
REQUEST_HISTORY_MAX
private static final int REQUEST_HISTORY_MAX- See Also:
-
MAX_ACTIVE_TESTS
private static final int MAX_ACTIVE_TESTS- See Also:
-
MAX_TEST_TIME
private static final int MAX_TEST_TIME- See Also:
-
TEST_TYPE_BT
private static final int TEST_TYPE_BT- See Also:
-
VERSION_INITIAL
private static final int VERSION_INITIAL- See Also:
-
CURRENT_VERSION
private static final int CURRENT_VERSION- See Also:
-
BT_MAX_SLAVES
private static final int BT_MAX_SLAVES- See Also:
-
plugin
-
plugin_interface
-
ddb
-
dht_plugin
-
transfer_type
-
request_history
-
active_tests
-
timer_event
-
-
Constructor Details
-
NetStatusProtocolTester
-
-
Method Details
-
runTest
-
runTest
public NetStatusProtocolTesterBT runTest(String test_address, NetStatusProtocolTesterListener listener) -
createTester
-
tryTest
-
adjustLoopback
-
sendRequest
-
receiveRequest
-
addToActive
-
removeFromActive
-
read
public DistributedDatabaseValue read(DistributedDatabaseContact contact, DistributedDatabaseTransferType type, DistributedDatabaseKey ddb_key) throws DistributedDatabaseException - Specified by:
readin interfaceDistributedDatabaseTransferHandler- Throws:
DistributedDatabaseException
-
write
public DistributedDatabaseValue write(DistributedDatabaseContact contact, DistributedDatabaseTransferType type, DistributedDatabaseKey key, DistributedDatabaseValue value) throws DistributedDatabaseException - Specified by:
writein interfaceDistributedDatabaseTransferHandler- Throws:
DistributedDatabaseException
-
log
-
log
-