Class ThreadPoolMetricsSampler
java.lang.Object
org.apache.dubbo.metrics.collector.sample.ThreadPoolMetricsSampler
- All Implemented Interfaces:
org.apache.dubbo.common.store.DataStoreUpdateListener,MetricsSampler
public class ThreadPoolMetricsSampler
extends Object
implements MetricsSampler, org.apache.dubbo.common.store.DataStoreUpdateListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExecutors(String name, ExecutorService executorService) booleanCheck if samples have been changed.voidvoidsample()
-
Constructor Details
-
ThreadPoolMetricsSampler
-
-
Method Details
-
onUpdate
- Specified by:
onUpdatein interfaceorg.apache.dubbo.common.store.DataStoreUpdateListener
-
addExecutors
-
sample
- Specified by:
samplein interfaceMetricsSampler
-
registryDefaultSampleThreadPoolExecutor
public void registryDefaultSampleThreadPoolExecutor() -
calSamplesChanged
public boolean calSamplesChanged()Description copied from interface:MetricsSamplerCheck if samples have been changed. Note that this method will reset the changed flag to false using CAS.- Specified by:
calSamplesChangedin interfaceMetricsSampler- Returns:
- true if samples have been changed
-