FileDocCategorySizeDatePackage
DHTControl.javaAPI DocAzureus 3.0.3.43845Mon Jul 03 08:51:14 BST 2006com.aelitis.azureus.core.dht.control

DHTControl

public interface DHTControl
author
parg

Fields Summary
public static final int
K_DEFAULT
public static final int
B_DEFAULT
public static final int
MAX_REP_PER_NODE_DEFAULT
public static final int
SEARCH_CONCURRENCY_DEFAULT
public static final int
LOOKUP_CONCURRENCY_DEFAULT
public static final int
CACHE_AT_CLOSEST_N_DEFAULT
public static final int
ORIGINAL_REPUBLISH_INTERVAL_DEFAULT
public static final int
CACHE_REPUBLISH_INTERVAL_DEFAULT
Constructors Summary
Methods Summary
public voidaddListener(DHTControlListener l)

public intcomputeAndCompareDistances(byte[] n1, byte[] n2, byte[] pivot)

public voidexportState(java.io.DataOutputStream os, int max)

public voidget(byte[] key, java.lang.String description, byte flags, int max_values, long timeout, boolean exhaustive, boolean high_priority, com.aelitis.azureus.core.dht.DHTOperationListener listener)

public DHTControlActivity[]getActivities()

public java.util.ListgetClosestKContactsList(byte[] id, boolean live_only)

public java.util.ListgetContacts()
Returns a list of DHTContact objects

return

public com.aelitis.azureus.core.dht.db.DHTDBgetDataBase()

public DHTTransportValuegetLocalValue(byte[] key)

public com.aelitis.azureus.core.dht.router.DHTRoutergetRouter()

public DHTControlStatsgetStats()

public DHTTransportgetTransport()

public voidimportState(java.io.DataInputStream is)

public booleanisDiversified(byte[] key)

public booleanlookup(byte[] id, long timeout, com.aelitis.azureus.core.dht.DHTOperationListener listener)

public voidprint()

public voidput(byte[] key, java.lang.String description, byte[] value, byte flags, com.aelitis.azureus.core.dht.DHTOperationListener listener)

public voidputDirectEncodedKeys(byte[][] keys, java.lang.String description, DHTTransportValue[][] value_sets, java.util.List contacts)

public voidputEncodedKey(byte[] key, java.lang.String description, DHTTransportValue value, long timeout, boolean original_mappings)

public byte[]remove(byte[] key, java.lang.String description, com.aelitis.azureus.core.dht.DHTOperationListener listener)

public voidremoveListener(DHTControlListener l)

public voidseed(boolean full_wait)

public java.util.ListsortContactsByDistance(java.util.List contacts)

public booleanverifyContact(DHTTransportContact c, boolean direct)