com.aelitis.azureus.plugins.dht
Interface DHTPluginInterface

All Known Implementing Classes:
DHTPlugin

public interface DHTPluginInterface


Nested Class Summary
static interface DHTPluginInterface.DHTInterface
           
 
Field Summary
static byte FLAG_ANON
           
static byte FLAG_BRIDGED
           
static byte FLAG_DOWNLOADING
           
static byte FLAG_MULTI_VALUE
           
static byte FLAG_PRECIOUS
           
static byte FLAG_SEEDING
           
static byte FLAG_SINGLE_VALUE
           
static byte FLAG_STATS
           
static int MAX_VALUE_SIZE
           
 
Method Summary
 void addListener(DHTPluginListener l)
           
 DHTPluginKeyStats decodeStats(DHTPluginValue value)
           
 void get(byte[] original_key, java.lang.String description, byte flags, int max_values, long timeout, boolean exhaustive, boolean high_priority, DHTPluginOperationListener original_listener)
           
 DHTPluginInterface.DHTInterface[] getDHTInterfaces()
           
 DHTPluginContact getLocalAddress()
           
 java.lang.String getNetwork()
           
 java.util.List<DHTPluginValue> getValues()
           
 java.util.List<DHTPluginValue> getValues(byte[] key)
           
 DHTPluginContact importContact(java.net.InetSocketAddress address)
           
 DHTPluginContact importContact(java.net.InetSocketAddress address, byte version)
           
 DHTPluginContact importContact(java.net.InetSocketAddress address, byte version, boolean is_cvs)
           
 DHTPluginContact importContact(java.util.Map<java.lang.String,java.lang.Object> map)
           
 boolean isEnabled()
           
 boolean isExtendedUseAllowed()
           
 boolean isInitialising()
           
 boolean isSleeping()
           
 void log(java.lang.String str)
           
 void put(byte[] key, java.lang.String description, byte[] value, byte flags, DHTPluginOperationListener listener)
           
 void registerHandler(byte[] handler_key, DHTPluginTransferHandler handler, java.util.Map<java.lang.String,java.lang.Object> options)
           
 void remove(byte[] key, java.lang.String description, DHTPluginOperationListener listener)
           
 void remove(DHTPluginContact[] targets, byte[] key, java.lang.String description, DHTPluginOperationListener listener)
           
 void removeListener(DHTPluginListener l)
           
 void unregisterHandler(byte[] handler_key, DHTPluginTransferHandler handler)
           
 

Field Detail

FLAG_SINGLE_VALUE

static final byte FLAG_SINGLE_VALUE
See Also:
Constant Field Values

FLAG_DOWNLOADING

static final byte FLAG_DOWNLOADING
See Also:
Constant Field Values

FLAG_SEEDING

static final byte FLAG_SEEDING
See Also:
Constant Field Values

FLAG_MULTI_VALUE

static final byte FLAG_MULTI_VALUE
See Also:
Constant Field Values

FLAG_STATS

static final byte FLAG_STATS
See Also:
Constant Field Values

FLAG_ANON

static final byte FLAG_ANON
See Also:
Constant Field Values

FLAG_PRECIOUS

static final byte FLAG_PRECIOUS
See Also:
Constant Field Values

FLAG_BRIDGED

static final byte FLAG_BRIDGED
See Also:
Constant Field Values

MAX_VALUE_SIZE

static final int MAX_VALUE_SIZE
See Also:
Constant Field Values
Method Detail

isEnabled

boolean isEnabled()

isExtendedUseAllowed

boolean isExtendedUseAllowed()

isInitialising

boolean isInitialising()

isSleeping

boolean isSleeping()

getLocalAddress

DHTPluginContact getLocalAddress()

getNetwork

java.lang.String getNetwork()

decodeStats

DHTPluginKeyStats decodeStats(DHTPluginValue value)

registerHandler

void registerHandler(byte[] handler_key,
                     DHTPluginTransferHandler handler,
                     java.util.Map<java.lang.String,java.lang.Object> options)

unregisterHandler

void unregisterHandler(byte[] handler_key,
                       DHTPluginTransferHandler handler)

importContact

DHTPluginContact importContact(java.net.InetSocketAddress address)

importContact

DHTPluginContact importContact(java.net.InetSocketAddress address,
                               byte version)

importContact

DHTPluginContact importContact(java.net.InetSocketAddress address,
                               byte version,
                               boolean is_cvs)

importContact

DHTPluginContact importContact(java.util.Map<java.lang.String,java.lang.Object> map)

get

void get(byte[] original_key,
         java.lang.String description,
         byte flags,
         int max_values,
         long timeout,
         boolean exhaustive,
         boolean high_priority,
         DHTPluginOperationListener original_listener)

put

void put(byte[] key,
         java.lang.String description,
         byte[] value,
         byte flags,
         DHTPluginOperationListener listener)

getDHTInterfaces

DHTPluginInterface.DHTInterface[] getDHTInterfaces()

getValues

java.util.List<DHTPluginValue> getValues()

getValues

java.util.List<DHTPluginValue> getValues(byte[] key)

remove

void remove(byte[] key,
            java.lang.String description,
            DHTPluginOperationListener listener)

remove

void remove(DHTPluginContact[] targets,
            byte[] key,
            java.lang.String description,
            DHTPluginOperationListener listener)

addListener

void addListener(DHTPluginListener l)

removeListener

void removeListener(DHTPluginListener l)

log

void log(java.lang.String str)