java.lang.Object
org.camunda.bpm.qa.performance.engine.loadgenerator.tasks.GenerateMetricsTask
All Implemented Interfaces:
Runnable

public class GenerateMetricsTask extends Object implements Runnable
Represents an task which generates metrics of an year.
Author:
Christopher Zell <christopher.zell@camunda.com>
  • Field Details

    • ITERATION_PER_EXECUTION

      public static final int ITERATION_PER_EXECUTION
      The iteration count which indicates how often the metric generation is repeated per thread execution.
      See Also:
    • MS_COUNT_PER_YEAR

      public static final long MS_COUNT_PER_YEAR
      The milliseconds per year.
      See Also:
    • THREAD_ID_GENERATOR

      public static final AtomicInteger THREAD_ID_GENERATOR
      Generator to generate the thread id's.
    • THREAD_ID

      public static final ThreadLocal<Integer> THREAD_ID
      The thread id which identifies the current thread.
    • START_TIME

      public static final ThreadLocal<Long> START_TIME
      The start time on which the thread should begin to generate metrics. Each thread has his own start time, which is calculated with his id and the milliseconds per year. That means each thread generated data in a different year.
    • INTERVAL

      public static final long INTERVAL
      The interval length in milliseconds.
      See Also:
    • processEngineConfiguration

      protected ProcessEngineConfigurationImpl processEngineConfiguration
      The process engine configuration, which is used for the metric reporting.
  • Constructor Details

    • GenerateMetricsTask

      public GenerateMetricsTask(ProcessEngine processEngine)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable