public class PersistSybil extends Object
Constructor and Description |
---|
PersistSybil(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(Hash h)
Load all the analysis for a certain hash.
|
Map<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<Hash,Points> entries)
Store each entry.
|
PersistSybil(I2PAppContext ctx)
public void store(long date, Map<Hash,Points> entries) throws IOException
entries
- each one should be "entry" at the rootIOException
public List<Long> load()
public Map<Hash,Points> load(long date) throws IOException
IOException
public Map<Long,Points> load(Hash h) throws IOException
IOException
public void removeOld()
public boolean delete(long date)