Class MetricsCommandInterceptor

java.lang.Object
org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
com.flowable.core.micrometer.impl.interceptor.MetricsCommandInterceptor
All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder, CommandInterceptor

public class MetricsCommandInterceptor extends AbstractCommandInterceptor implements io.micrometer.core.instrument.binder.MeterBinder
  • Field Details

    • COUNTER_NAME

      public static final String COUNTER_NAME
      See Also:
    • ENGINE_TYPE_TAG

      public static final String ENGINE_TYPE_TAG
      See Also:
    • JOB_EXECUTION_TIMER_NAME

      public static final String JOB_EXECUTION_TIMER_NAME
      See Also:
    • engineType

      protected final String engineType
    • counter

      protected io.micrometer.core.instrument.Counter counter
    • asyncjobExecutionTimer

      protected io.micrometer.core.instrument.Timer asyncjobExecutionTimer
    • historyJobExecutionTimer

      protected io.micrometer.core.instrument.Timer historyJobExecutionTimer
  • Constructor Details

    • MetricsCommandInterceptor

      public MetricsCommandInterceptor(String engineType)
  • Method Details

    • bindTo

      public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
      Specified by:
      bindTo in interface io.micrometer.core.instrument.binder.MeterBinder
    • execute

      public <T> T execute(CommandConfig config, Command<T> command, CommandExecutor commandExecutor)
      Specified by:
      execute in interface CommandInterceptor
    • getEngineType

      public String getEngineType()