Class GenerateMetricsTask
java.lang.Object
org.camunda.bpm.qa.performance.engine.loadgenerator.tasks.GenerateMetricsTask
- All Implemented Interfaces:
Runnable
Represents an task which generates metrics of an year.
- Author:
- Christopher Zell <christopher.zell@camunda.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
The interval length in milliseconds.static final int
The iteration count which indicates how often the metric generation is repeated per thread execution.static final long
The milliseconds per year.protected ProcessEngineConfigurationImpl
The process engine configuration, which is used for the metric reporting.static final ThreadLocal<Long>
The start time on which the thread should begin to generate metrics.static final ThreadLocal<Integer>
The thread id which identifies the current thread.static final AtomicInteger
Generator to generate the thread id's. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ITERATION_PER_EXECUTION
public static final int ITERATION_PER_EXECUTIONThe 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_YEARThe milliseconds per year.- See Also:
-
THREAD_ID_GENERATOR
Generator to generate the thread id's. -
THREAD_ID
The thread id which identifies the current thread. -
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 INTERVALThe interval length in milliseconds.- See Also:
-
processEngineConfiguration
The process engine configuration, which is used for the metric reporting.
-
-
Constructor Details
-
GenerateMetricsTask
-
-
Method Details