com.aelitis.azureus.core.dht.db.impl
Class DHTDBMapping

java.lang.Object
  extended by com.aelitis.azureus.core.dht.db.impl.DHTDBMapping

public class DHTDBMapping
extends java.lang.Object

Author:
parg

Nested Class Summary
static class DHTDBMapping.ShortHash
           
protected  class DHTDBMapping.valueIterator
           
 
Constructor Summary
protected DHTDBMapping(DHTDBImpl _db, HashWrapper _key, boolean _local)
           
 
Method Summary
protected  void add(DHTDBValueImpl new_value)
           
protected  void addDirectValue(HashWrapper value_key, DHTDBValueImpl value)
           
protected  void addHit()
           
protected  void addIndirectValue(HashWrapper value_key, DHTDBValueImpl value)
           
protected  void addToBloom(DHTDBValueImpl value)
           
protected  java.util.Map<HashWrapper,DHTDBValueImpl> createLinkedMap()
           
protected  void destroy()
           
protected  DHTDBValueImpl get(DHTTransportContact originator)
           
protected  DHTDBValueImpl[] get(DHTTransportContact by_who, int max, short flags)
           
protected  java.util.List<DHTDBValueImpl> getAllValues(DHTTransportContact originator)
           
protected  DHTDBValueImpl getAnyValue(DHTTransportContact originator)
           
protected  int getDirectSize()
           
protected  int getDirectValueCount()
           
protected  java.util.Iterator<DHTDBValueImpl> getDirectValues()
           
protected  byte getDiversificationType()
           
protected  int getHits()
           
protected  int getIndirectSize()
           
protected  int getIndirectValueCount()
           
protected  java.util.Iterator<DHTDBValueImpl> getIndirectValues()
           
protected  HashWrapper getKey()
           
protected  int getLocalSize()
           
protected  DHTDBMapping.ShortHash getShortKey()
           
protected  int getValueCount()
           
protected  java.util.Iterator<DHTDBValueImpl> getValues()
           
protected  void print()
           
protected  void rebuildIPBloomFilter(boolean increase_size)
           
protected  DHTDBValueImpl remove(DHTTransportContact originator)
           
protected  DHTDBValueImpl removeDirectValue(HashWrapper value_key)
           
protected  void removeFromBloom(DHTDBValueImpl value)
           
protected  DHTDBValueImpl removeIndirectValue(HashWrapper value_key)
           
protected  void updateLocalContact(DHTTransportContact contact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTDBMapping

protected DHTDBMapping(DHTDBImpl _db,
                       HashWrapper _key,
                       boolean _local)
Method Detail

createLinkedMap

protected java.util.Map<HashWrapper,DHTDBValueImpl> createLinkedMap()

getKey

protected HashWrapper getKey()

getShortKey

protected DHTDBMapping.ShortHash getShortKey()

updateLocalContact

protected void updateLocalContact(DHTTransportContact contact)

add

protected void add(DHTDBValueImpl new_value)

addHit

protected void addHit()

getHits

protected int getHits()

getIndirectSize

protected int getIndirectSize()

getDirectSize

protected int getDirectSize()

getLocalSize

protected int getLocalSize()

get

protected DHTDBValueImpl[] get(DHTTransportContact by_who,
                               int max,
                               short flags)

get

protected DHTDBValueImpl get(DHTTransportContact originator)

getAnyValue

protected DHTDBValueImpl getAnyValue(DHTTransportContact originator)

getAllValues

protected java.util.List<DHTDBValueImpl> getAllValues(DHTTransportContact originator)

remove

protected DHTDBValueImpl remove(DHTTransportContact originator)

getValueCount

protected int getValueCount()

getDirectValueCount

protected int getDirectValueCount()

getIndirectValueCount

protected int getIndirectValueCount()

getValues

protected java.util.Iterator<DHTDBValueImpl> getValues()

getDirectValues

protected java.util.Iterator<DHTDBValueImpl> getDirectValues()

getIndirectValues

protected java.util.Iterator<DHTDBValueImpl> getIndirectValues()

getDiversificationType

protected byte getDiversificationType()

addDirectValue

protected void addDirectValue(HashWrapper value_key,
                              DHTDBValueImpl value)

removeDirectValue

protected DHTDBValueImpl removeDirectValue(HashWrapper value_key)

addIndirectValue

protected void addIndirectValue(HashWrapper value_key,
                                DHTDBValueImpl value)

removeIndirectValue

protected DHTDBValueImpl removeIndirectValue(HashWrapper value_key)

destroy

protected void destroy()

addToBloom

protected void addToBloom(DHTDBValueImpl value)

removeFromBloom

protected void removeFromBloom(DHTDBValueImpl value)

rebuildIPBloomFilter

protected void rebuildIPBloomFilter(boolean increase_size)

print

protected void print()