Package org.bonitasoft.engine.monitoring
Interface ExecutorServiceMetricsProvider
-
- All Known Implementing Classes:
DefaultExecutorServiceMetricsProvider,NoOpExecutorServiceMetricsProvider
public interface ExecutorServiceMetricsProvider- Author:
- Emmanuel Duchastenier
-
-
Method Summary
All Methods Instance Methods Abstract 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
java.util.concurrent.ExecutorService bind(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)- Returns:
- the monitored executor service with monitoring on execution time
-
bindMetricsOnly
void bindMetricsOnly(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.
-
unbind
void unbind(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.lang.String executorServiceName, long tenantId)unbind all metrics of the named executor service from the meter registry
-
-