Methods Summary |
---|
public DHTDBValue | get(org.gudy.azureus2.core3.util.HashWrapper key)Internal lookup for locally originated values
|
public DHTDBLookupResult | get(com.aelitis.azureus.core.dht.transport.DHTTransportContact reader, org.gudy.azureus2.core3.util.HashWrapper key, int max_values, byte flags, boolean external_request)
|
public com.aelitis.azureus.core.dht.DHTStorageBlock[] | getDirectKeyBlocks()
|
public com.aelitis.azureus.core.dht.DHTStorageBlock | getKeyBlockDetails(byte[] key)
|
public java.util.Iterator | getKeys()Returns an iterator over HashWrapper values denoting the snapshot of keys
Thus by the time a key is used the entry may no longer exist
|
public DHTDBStats | getStats()
|
public boolean | isEmpty()
|
public boolean | isKeyBlocked(byte[] key)
|
public com.aelitis.azureus.core.dht.DHTStorageBlock | keyBlockRequest(com.aelitis.azureus.core.dht.transport.DHTTransportContact direct_sender, byte[] request, byte[] signature)
|
public void | print()
|
public DHTDBValue | remove(com.aelitis.azureus.core.dht.transport.DHTTransportContact sender, org.gudy.azureus2.core3.util.HashWrapper key)Local remove - returns a value suitable for putting in the DHT
|
public void | setControl(com.aelitis.azureus.core.dht.control.DHTControl control)
|
public DHTDBValue | store(org.gudy.azureus2.core3.util.HashWrapper key, byte[] value, byte flags)Local store
|
public byte | store(com.aelitis.azureus.core.dht.transport.DHTTransportContact sender, org.gudy.azureus2.core3.util.HashWrapper key, com.aelitis.azureus.core.dht.transport.DHTTransportValue[] values)Remote store
|