public class OnionPerfPersistence extends DescriptorPersistence<org.torproject.descriptor.TorperfResult>
annotationBytes, BRIDGEDBSTATS, BRIDGEDESCS, BRIDGEPOOLASSIGNMENTS, DASH, desc, descriptorBytes, DOT, EMPTY_ANNOTATION, EXTRA_INFO, EXTRA_INFOS, MICRODESC, MICRODESCS, recentPath, RELAYDESCS, SERVERDESC, SERVERDESCS, storagePath, WEBSTATS
Constructor and Description |
---|
OnionPerfPersistence(org.torproject.descriptor.TorperfResult desc) |
Modifier and Type | Method and 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.
|
getRecentPath, getStoragePath, storeAll, storeAll, storeAll, storeOut, storeRecent
public OnionPerfPersistence(org.torproject.descriptor.TorperfResult desc)
public boolean storeOut(java.lang.String outRoot, java.nio.file.StandardOpenOption option)
storeOut
in class DescriptorPersistence<org.torproject.descriptor.TorperfResult>
public boolean storeRecent(java.lang.String recentRoot, java.nio.file.StandardOpenOption option)
storeRecent
in class DescriptorPersistence<org.torproject.descriptor.TorperfResult>