FileDocCategorySizeDatePackage
DHT.javaAPI DocAzureus 3.0.3.44734Thu Jun 28 16:08:24 BST 2007com.aelitis.azureus.core.dht

DHT

public interface DHT
author
parg

Fields Summary
public static final String
PR_CONTACTS_PER_NODE
public static final String
PR_NODE_SPLIT_FACTOR
public static final String
PR_SEARCH_CONCURRENCY
public static final String
PR_LOOKUP_CONCURRENCY
public static final String
PR_MAX_REPLACEMENTS_PER_NODE
public static final String
PR_CACHE_AT_CLOSEST_N
public static final String
PR_ORIGINAL_REPUBLISH_INTERVAL
public static final String
PR_CACHE_REPUBLISH_INTERVAL
public static final byte
FLAG_SINGLE_VALUE
public static final byte
FLAG_DOWNLOADING
public static final byte
FLAG_SEEDING
public static final byte
FLAG_MULTI_VALUE
public static final byte
FLAG_STATS
public static final int
MAX_VALUE_SIZE
public static final byte
DT_NONE
public static final byte
DT_FREQUENCY
public static final byte
DT_SIZE
public static final String[]
DT_STRINGS
public static final int
NW_MAIN
public static final int
NW_CVS
public static final int
NW_MAIN_V6
Constructors Summary
Methods Summary
public voiddestroy()

public voidexportState(java.io.DataOutputStream os, int max)
externalises information that allows the DHT to be recreated at a later date and populated via the import method

param
os
param
max maximum to export, 0 -> all
throws
IOException

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

param
key
param
max_values
param
timeout
param
listener

public com.aelitis.azureus.core.dht.control.DHTControlgetControl()

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

public intgetIntProperty(java.lang.String name)

public com.aelitis.azureus.core.dht.transport.DHTTransportValuegetLocalValue(byte[] key)
Returns value if originated from here for key

param
key
return

public DHTLoggergetLogger()

public com.aelitis.azureus.core.dht.nat.DHTNATPunchergetNATPuncher()

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

public com.aelitis.azureus.core.dht.speed.DHTSpeedTestergetSpeedTester()

public DHTStorageAdaptergetStorageAdapter()

public com.aelitis.azureus.core.dht.transport.DHTTransportgetTransport()

public voidimportState(java.io.DataInputStream is)
populate the DHT with previously exported state

param
is
throws
IOException

public voidintegrate(boolean full_wait)
Integrate the node into the DHT Can be invoked more than once if additional state is imported

public booleanisDiversified(byte[] key)

public voidprint()

public voidput(byte[] key, java.lang.String description, byte[] value, byte flags, DHTOperationListener listener)

public byte[]remove(byte[] key, java.lang.String description, DHTOperationListener listener)

public voidsetLogging(boolean on)