Package org.bonitasoft.engine.monitoring
Class NoOpExecutorServiceMetricsProvider
- java.lang.Object
-
- org.bonitasoft.engine.monitoring.NoOpExecutorServiceMetricsProvider
-
- All Implemented Interfaces:
ExecutorServiceMetricsProvider
public class NoOpExecutorServiceMetricsProvider extends java.lang.Object implements ExecutorServiceMetricsProvider
- Author:
- Emmanuel Duchastenier
-
-
Constructor Summary
Constructors Constructor Description NoOpExecutorServiceMetricsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ExecutorServicebind(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.util.concurrent.ThreadPoolExecutor executorService, java.lang.String executorServiceName, long tenantId)bind the executor service to the registry, only support ThreadPool right now, seeDefaultExecutorServiceMetricsProvider.unbind(MeterRegistry, String, long)voidbindMetricsOnly(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.util.concurrent.ThreadPoolExecutor executorService, java.lang.String executorServiceName, long tenantId)bind the executor service to the registry, only support ThreadPool right now, seeDefaultExecutorServiceMetricsProvider.unbind(MeterRegistry, String, long)This will only bind statisctics of the Threadpool, and not time taks.voidunbind(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.lang.String executorServiceName, long tenantId)unbind all metrics of the named executor service from the meter registry
-
-
-
Method Detail
-
bind
public java.util.concurrent.ExecutorService bind(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.util.concurrent.ThreadPoolExecutor executorService, java.lang.String executorServiceName, long tenantId)Description copied from interface:ExecutorServiceMetricsProviderbind the executor service to the registry, only support ThreadPool right now, seeDefaultExecutorServiceMetricsProvider.unbind(MeterRegistry, String, long)- Specified by:
bindin interfaceExecutorServiceMetricsProvider- Returns:
- the monitored executor service with monitoring on execution time
-
bindMetricsOnly
public void bindMetricsOnly(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.util.concurrent.ThreadPoolExecutor executorService, java.lang.String executorServiceName, long tenantId)Description copied from interface:ExecutorServiceMetricsProviderbind the executor service to the registry, only support ThreadPool right now, seeDefaultExecutorServiceMetricsProvider.unbind(MeterRegistry, String, long)This will only bind statisctics of the Threadpool, and not time taks.- Specified by:
bindMetricsOnlyin interfaceExecutorServiceMetricsProvider
-
unbind
public void unbind(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.lang.String executorServiceName, long tenantId)Description copied from interface:ExecutorServiceMetricsProviderunbind all metrics of the named executor service from the meter registry- Specified by:
unbindin interfaceExecutorServiceMetricsProvider
-
-