Class BenchmarkHandler.WorkerData

  • Enclosing class:
    BenchmarkHandler

    private static class BenchmarkHandler.WorkerData
    extends java.lang.Object
    Handles thread-local data for each worker that should not change between the iterations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Object instance
      Synthetic benchmark instance, which holds the benchmark metadata.
      (package private) ThreadParams params
      Thread parameters.
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerData​(java.lang.Object instance, ThreadParams params)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • instance

        final java.lang.Object instance
        Synthetic benchmark instance, which holds the benchmark metadata. Expected to be touched by a single thread only.
      • params

        final ThreadParams params
        Thread parameters. Among other things, holds the thread's place in group distribution, and thus should be the same for a given thread.
    • Constructor Detail

      • WorkerData

        public WorkerData​(java.lang.Object instance,
                          ThreadParams params)