Class SnapshotBenchmark

java.lang.Object
io.datarouter.filesystem.snapshot.benchmark.SnapshotBenchmark

public class SnapshotBenchmark
extends Object
  • Field Details

    • WRITE_BATCH_SIZE

      public static final int WRITE_BATCH_SIZE
      See Also:
      Constant Field Values
    • group

      public final SnapshotGroup group
    • numEntries

      public final long numEntries
    • writeBatchSize

      public final int writeBatchSize
    • persist

      public final boolean persist
    • snapshotKey

      public SnapshotKey snapshotKey
  • Constructor Details

    • SnapshotBenchmark

      public SnapshotBenchmark​(SnapshotGroup group, int numInputThreads, int numWriterThreads, long numEntries, int writeBatchSize, boolean persist)
  • Method Details

    • execute

      public RootBlock execute()
    • cleanup

      public void cleanup()
    • shutdown

      public void shutdown()
    • makeEntryScanner

      public io.datarouter.scanner.Scanner<List<SnapshotEntry>> makeEntryScanner​(ExecutorService exec, int numThreads)
    • makeEntries

      public static List<SnapshotEntry> makeEntries​(long from, int limit)
    • makeKey

      public static byte[] makeKey​(long id)
    • makeValue

      public static byte[] makeValue​(long id)