public class SyncPersistence
extends java.lang.Object
Constructor and Description |
---|
SyncPersistence(Configuration conf)
Initialize with the given configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanDirectory()
Cleans the directory in
RecentPath after storing descriptors. |
void |
storeDesc(org.torproject.descriptor.Descriptor desc,
long received)
Stores a descriptor in main storage and recent.
|
void |
storeDescs(java.lang.Iterable<org.torproject.descriptor.Descriptor> descs,
long received)
Stores descriptors in main storage and recent.
|
public SyncPersistence(Configuration conf) throws ConfigurationException
ConfigurationException
public void cleanDirectory()
RecentPath
after storing descriptors.public void storeDescs(java.lang.Iterable<org.torproject.descriptor.Descriptor> descs, long received)
collector.properties
'
options OutputPath
and RecentPath
.public void storeDesc(org.torproject.descriptor.Descriptor desc, long received)
collector.properties
'
options OutputPath
and RecentPath
.