com.aelitis.azureus.plugins.dht.impl
Class DHTPluginStorageManager.storageKey

java.lang.Object
  extended by com.aelitis.azureus.plugins.dht.impl.DHTPluginStorageManager.storageKey
All Implemented Interfaces:
DHTStorageKey
Enclosing class:
DHTPluginStorageManager

protected static class DHTPluginStorageManager.storageKey
extends Object
implements DHTStorageKey


Constructor Summary
protected DHTPluginStorageManager.storageKey(DHTPluginStorageManager _manager, byte _type, HashWrapper _key)
           
protected DHTPluginStorageManager.storageKey(DHTPluginStorageManager _manager, byte _type, HashWrapper _key, long _expiry)
           
 
Method Summary
protected static DHTPluginStorageManager.storageKey deserialise(DHTPluginStorageManager _manager, Map map)
           
 byte getDiversificationType()
           
 int getEntryCount()
           
protected  long getExpiry()
           
protected  HashWrapper getKey()
           
 int getReadsPerMinute()
           
 int getSize()
           
protected  void read(DHTTransportContact contact)
           
protected  Map serialise()
           
 void serialiseStats(DataOutputStream dos)
           
protected  void valueChanged(int entries_diff, int size_diff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTPluginStorageManager.storageKey

protected DHTPluginStorageManager.storageKey(DHTPluginStorageManager _manager,
                                             byte _type,
                                             HashWrapper _key)

DHTPluginStorageManager.storageKey

protected DHTPluginStorageManager.storageKey(DHTPluginStorageManager _manager,
                                             byte _type,
                                             HashWrapper _key,
                                             long _expiry)
Method Detail

serialise

protected Map serialise()

deserialise

protected static DHTPluginStorageManager.storageKey deserialise(DHTPluginStorageManager _manager,
                                                                Map map)

serialiseStats

public void serialiseStats(DataOutputStream dos)
                    throws IOException
Specified by:
serialiseStats in interface DHTStorageKey
Throws:
IOException

getKey

protected HashWrapper getKey()

getExpiry

protected long getExpiry()

getDiversificationType

public byte getDiversificationType()
Specified by:
getDiversificationType in interface DHTStorageKey

getReadsPerMinute

public int getReadsPerMinute()

getSize

public int getSize()

getEntryCount

public int getEntryCount()

read

protected void read(DHTTransportContact contact)

valueChanged

protected void valueChanged(int entries_diff,
                            int size_diff)