Class OnionPerfPersistence


  • public class OnionPerfPersistence
    extends DescriptorPersistence<org.torproject.descriptor.TorperfResult>
    • Constructor Detail

      • OnionPerfPersistence

        public OnionPerfPersistence​(org.torproject.descriptor.TorperfResult desc)
    • 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 class DescriptorPersistence<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 class DescriptorPersistence<org.torproject.descriptor.TorperfResult>