public class PersistSybil extends Object
| Constructor and Description |
|---|
PersistSybil(net.i2p.I2PAppContext ctx)
access via Analysis.getPersister()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(long date)
Delete the file for a particular date
|
List<Long> |
load()
The list of stored analysis sets, as a time stamp.
|
Map<Long,Points> |
load(net.i2p.data.Hash h)
Load all the analysis for a certain hash.
|
Map<net.i2p.data.Hash,Points> |
load(long date)
Load the analysis for a certain date.
|
void |
removeOld()
Remove all files older than configured threshold
Inline for now, thread later if necessary
|
void |
store(long date,
Map<net.i2p.data.Hash,Points> entries)
Store each entry.
|
PersistSybil(net.i2p.I2PAppContext ctx)
public void store(long date,
Map<net.i2p.data.Hash,Points> entries)
throws IOException
entries - each one should be "entry" at the rootIOExceptionpublic List<Long> load()
public Map<net.i2p.data.Hash,Points> load(long date) throws IOException
IOExceptionpublic Map<Long,Points> load(net.i2p.data.Hash h) throws IOException
IOExceptionpublic void removeOld()
public boolean delete(long date)