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 java.lang.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, java.util.Map map)
           
 byte getDiversificationType()
           
 int getEntryCount()
           
protected  long getExpiry()
           
protected  HashWrapper getKey()
           
 int getReadsPerMinute()
           
 int getSize()
           
protected  void read(DHTTransportContact contact)
           
protected  java.util.Map serialise()
           
 void serialiseStats(java.io.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 java.util.Map serialise()

deserialise

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

serialiseStats

public void serialiseStats(java.io.DataOutputStream dos)
                    throws java.io.IOException
Specified by:
serialiseStats in interface DHTStorageKey
Throws:
java.io.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)