Class OnionPerfPersistence
- java.lang.Object
-
- org.torproject.metrics.collector.persist.DescriptorPersistence<org.torproject.descriptor.TorperfResult>
-
- org.torproject.metrics.collector.persist.OnionPerfPersistence
-
public class OnionPerfPersistence extends DescriptorPersistence<org.torproject.descriptor.TorperfResult>
-
-
Field Summary
-
Fields inherited from class org.torproject.metrics.collector.persist.DescriptorPersistence
annotationBytes, BRIDGEDBSTATS, BRIDGEDESCS, BRIDGEPOOLASSIGNMENTS, DASH, desc, descriptorBytes, DOT, EMPTY_ANNOTATION, EXTRA_INFO, EXTRA_INFOS, MICRODESC, MICRODESCS, recentPath, RELAYDESCS, SERVERDESC, SERVERDESCS, storagePath, WEBSTATS
-
-
Constructor Summary
Constructors Constructor Description OnionPerfPersistence(org.torproject.descriptor.TorperfResult desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
storeOut(java.lang.String outRoot, java.nio.file.StandardOpenOption option)
If the original descriptor file was a .tpf file, append the parsed Torperf result to the destination .tpf file, but if it was a .json.xz file, just copy over the entire file, unless it already exists.boolean
storeRecent(java.lang.String recentRoot, java.nio.file.StandardOpenOption option)
If the original descriptor file was a .tpf file, append the parsed Torperf result to the destination .tpf file, but if it was a .json.xz file, just copy over the entire file, unless it already exists.-
Methods inherited from class org.torproject.metrics.collector.persist.DescriptorPersistence
getRecentPath, getStoragePath, storeAll, storeAll, storeAll, storeOut, storeRecent
-
-
-
-
Method Detail
-
storeOut
public boolean storeOut(java.lang.String outRoot, java.nio.file.StandardOpenOption option)
If the original descriptor file was a .tpf file, append the parsed Torperf result to the destination .tpf file, but if it was a .json.xz file, just copy over the entire file, unless it already exists.- Overrides:
storeOut
in classDescriptorPersistence<org.torproject.descriptor.TorperfResult>
-
storeRecent
public boolean storeRecent(java.lang.String recentRoot, java.nio.file.StandardOpenOption option)
If the original descriptor file was a .tpf file, append the parsed Torperf result to the destination .tpf file, but if it was a .json.xz file, just copy over the entire file, unless it already exists.- Overrides:
storeRecent
in classDescriptorPersistence<org.torproject.descriptor.TorperfResult>
-
-