Package com.biglybt.plugin.net.netstatus
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 List
private static final int
private static final int
private DistributedDatabase
private DHTPlugin
private static final int
private static final int
private NetStatusPlugin
private PluginInterface
private Map
private static final int
private static final int
private TimerEventPeriodic
private static final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NetStatusProtocolTester
(NetStatusPlugin _plugin, PluginInterface _plugin_interface) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addToActive
(NetStatusProtocolTesterBT tester) protected InetSocketAddress
adjustLoopback
(InetSocketAddress address) createTester
(NetStatusProtocolTesterListener listener) void
void
read
(DistributedDatabaseContact contact, DistributedDatabaseTransferType type, DistributedDatabaseKey ddb_key) protected Map
receiveRequest
(InetSocketAddress originator, Map request) protected void
runTest
(NetStatusProtocolTesterListener listener) runTest
(String test_address, NetStatusProtocolTesterListener listener) protected Map
sendRequest
(DistributedDatabaseContact contact, Map request) boolean
tryTest
(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:
read
in interfaceDistributedDatabaseTransferHandler
- Throws:
DistributedDatabaseException
-
write
public DistributedDatabaseValue write(DistributedDatabaseContact contact, DistributedDatabaseTransferType type, DistributedDatabaseKey key, DistributedDatabaseValue value) throws DistributedDatabaseException - Specified by:
write
in interfaceDistributedDatabaseTransferHandler
- Throws:
DistributedDatabaseException
-
log
-
log
-