Class GenerateMetricsTask

  • All Implemented Interfaces:
    Runnable

    public class GenerateMetricsTask
    extends Object
    implements Runnable
    Represents an task which generates metrics of an year.
    Author:
    Christopher Zell
    • Field Detail

      • 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:
        Constant Field Values
      • MS_COUNT_PER_YEAR

        public static final long MS_COUNT_PER_YEAR
        The milliseconds per year.
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • processEngineConfiguration

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

      • GenerateMetricsTask

        public GenerateMetricsTask​(ProcessEngine processEngine)
    • Method Detail

      • run

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