Class DescriptorSource
- java.lang.Object
-
- org.torproject.metrics.onionoo.updater.DescriptorSource
-
public class DescriptorSource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DescriptorSource()
Instantiates a new descriptor source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
downloadDescriptors()
Downloads descriptors from CollecTor.java.lang.String
getStatsString()
Returns a string with statistics on the number of processed descriptors during the current execution.void
readArchivedDescriptors()
Reads archived descriptors from disk and feeds them into any registered listeners.void
readDescriptors()
Reads archived and recent descriptors from disk and feeds them into any registered listeners.void
registerDescriptorListener(DescriptorListener listener, DescriptorType descriptorType)
Registers a descriptor listener for a given descriptor type.void
writeHistoryFiles()
Writes parse histories for recent descriptors to disk.
-
-
-
Method Detail
-
registerDescriptorListener
public void registerDescriptorListener(DescriptorListener listener, DescriptorType descriptorType)
Registers a descriptor listener for a given descriptor type.
-
downloadDescriptors
public void downloadDescriptors()
Downloads descriptors from CollecTor.
-
readDescriptors
public void readDescriptors()
Reads archived and recent descriptors from disk and feeds them into any registered listeners.
-
readArchivedDescriptors
public void readArchivedDescriptors()
Reads archived descriptors from disk and feeds them into any registered listeners.
-
writeHistoryFiles
public void writeHistoryFiles()
Writes parse histories for recent descriptors to disk.
-
getStatsString
public java.lang.String getStatsString()
Returns a string with statistics on the number of processed descriptors during the current execution.
-
-