public class ThreadPoolMetricsSampler extends Object implements MetricsSampler, org.apache.dubbo.common.store.DataStoreUpdateListener
| Constructor and Description |
|---|
ThreadPoolMetricsSampler(DefaultMetricsCollector collector) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecutors(String name,
ExecutorService executorService) |
boolean |
calSamplesChanged()
Check if samples have been changed.
|
void |
onUpdate(String componentName,
String key,
Object value) |
void |
registryDefaultSampleThreadPoolExecutor() |
List<MetricSample> |
sample() |
public ThreadPoolMetricsSampler(DefaultMetricsCollector collector)
public void onUpdate(String componentName, String key, Object value)
onUpdate in interface org.apache.dubbo.common.store.DataStoreUpdateListenerpublic void addExecutors(String name, ExecutorService executorService)
public List<MetricSample> sample()
sample in interface MetricsSamplerpublic void registryDefaultSampleThreadPoolExecutor()
public boolean calSamplesChanged()
MetricsSamplercalSamplesChanged in interface MetricsSamplerCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.