Package com.biglybt.plugin.dht.impl
Class DHTPluginStorageManager.storageKey
- java.lang.Object
-
- com.biglybt.plugin.dht.impl.DHTPluginStorageManager.storageKey
-
- All Implemented Interfaces:
DHTStorageKey
- Enclosing class:
- DHTPluginStorageManager
protected static class DHTPluginStorageManager.storageKey extends java.lang.Object implements DHTStorageKey
-
-
Field Summary
Fields Modifier and Type Field Description private int
entries
private long
expiry
private BloomFilter
ip_bloom_filter
private HashWrapper
key
private DHTPluginStorageManager
manager
private long
read_count_start
private short
reads_per_min
private int
size
private byte
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
storageKey(DHTPluginStorageManager _manager, byte _type, HashWrapper _key)
protected
storageKey(DHTPluginStorageManager _manager, byte _type, HashWrapper _key, long _expiry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
manager
private DHTPluginStorageManager manager
-
key
private HashWrapper key
-
type
private byte type
-
size
private int size
-
entries
private int entries
-
expiry
private long expiry
-
read_count_start
private long read_count_start
-
reads_per_min
private short reads_per_min
-
ip_bloom_filter
private BloomFilter ip_bloom_filter
-
-
Constructor Detail
-
storageKey
protected storageKey(DHTPluginStorageManager _manager, byte _type, HashWrapper _key)
-
storageKey
protected 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 interfaceDHTStorageKey
- Throws:
java.io.IOException
-
getKey
protected HashWrapper getKey()
-
getExpiry
protected long getExpiry()
-
getDiversificationType
public byte getDiversificationType()
- Specified by:
getDiversificationType
in interfaceDHTStorageKey
-
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)
-
-