com.aelitis.azureus.plugins.dht
Interface DHTPluginInterface
- All Known Implementing Classes: 
 - DHTPlugin
 
public interface DHTPluginInterface
 
 
| 
Method Summary | 
 void | 
addListener(DHTPluginListener l)
 
            | 
 DHTPluginKeyStats | 
decodeStats(DHTPluginValue value)
 
            | 
 void | 
get(byte[] original_key,
    String description,
    byte flags,
    int max_values,
    long timeout,
    boolean exhaustive,
    boolean high_priority,
    DHTPluginOperationListener original_listener)
 
            | 
 DHTPluginInterface.DHTInterface[] | 
getDHTInterfaces()
 
            | 
 DHTPluginContact | 
getLocalAddress()
 
            | 
 String | 
getNetwork()
 
            | 
 List<DHTPluginValue> | 
getValues()
 
            | 
 List<DHTPluginValue> | 
getValues(byte[] key)
 
            | 
 DHTPluginContact | 
importContact(InetSocketAddress address)
 
            | 
 DHTPluginContact | 
importContact(InetSocketAddress address,
              byte version)
 
            | 
 DHTPluginContact | 
importContact(InetSocketAddress address,
              byte version,
              boolean is_cvs)
 
            | 
 DHTPluginContact | 
importContact(Map<String,Object> map)
 
            | 
 boolean | 
isEnabled()
 
            | 
 boolean | 
isExtendedUseAllowed()
 
            | 
 boolean | 
isInitialising()
 
            | 
 boolean | 
isSleeping()
 
            | 
 void | 
log(String str)
 
            | 
 void | 
put(byte[] key,
    String description,
    byte[] value,
    byte flags,
    DHTPluginOperationListener listener)
 
            | 
 void | 
registerHandler(byte[] handler_key,
                DHTPluginTransferHandler handler,
                Map<String,Object> options)
 
            | 
 void | 
remove(byte[] key,
       String description,
       DHTPluginOperationListener listener)
 
            | 
 void | 
remove(DHTPluginContact[] targets,
       byte[] key,
       String description,
       DHTPluginOperationListener listener)
 
            | 
 void | 
removeListener(DHTPluginListener l)
 
            | 
 void | 
unregisterHandler(byte[] handler_key,
                  DHTPluginTransferHandler handler)
 
            | 
 
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
 
isEnabled
boolean isEnabled()
 
isExtendedUseAllowed
boolean isExtendedUseAllowed()
 
isInitialising
boolean isInitialising()
 
isSleeping
boolean isSleeping()
 
getLocalAddress
DHTPluginContact getLocalAddress()
 
getNetwork
String getNetwork()
 
decodeStats
DHTPluginKeyStats decodeStats(DHTPluginValue value)
 
registerHandler
void registerHandler(byte[] handler_key,
                     DHTPluginTransferHandler handler,
                     Map<String,Object> options)
 
unregisterHandler
void unregisterHandler(byte[] handler_key,
                       DHTPluginTransferHandler handler)
 
importContact
DHTPluginContact importContact(InetSocketAddress address)
 
importContact
DHTPluginContact importContact(InetSocketAddress address,
                               byte version)
 
importContact
DHTPluginContact importContact(InetSocketAddress address,
                               byte version,
                               boolean is_cvs)
 
importContact
DHTPluginContact importContact(Map<String,Object> map)
 
get
void get(byte[] original_key,
         String description,
         byte flags,
         int max_values,
         long timeout,
         boolean exhaustive,
         boolean high_priority,
         DHTPluginOperationListener original_listener)
 
put
void put(byte[] key,
         String description,
         byte[] value,
         byte flags,
         DHTPluginOperationListener listener)
 
getDHTInterfaces
DHTPluginInterface.DHTInterface[] getDHTInterfaces()
 
getValues
List<DHTPluginValue> getValues()
 
getValues
List<DHTPluginValue> getValues(byte[] key)
 
remove
void remove(byte[] key,
            String description,
            DHTPluginOperationListener listener)
 
remove
void remove(DHTPluginContact[] targets,
            byte[] key,
            String description,
            DHTPluginOperationListener listener)
 
addListener
void addListener(DHTPluginListener l)
 
removeListener
void removeListener(DHTPluginListener l)
 
log
void log(String str)