@Activate public class RegistryMetricsCollector extends CombMetricsCollector<RegistryEvent>
MetricsCollector| Constructor and Description |
|---|
RegistryMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
calSamplesChanged() |
List<MetricSample> |
collect() |
void |
incrMetricsNum(MetricsKey metricsKey,
List<String> registryClusterNames) |
void |
incrRegisterFinishNum(MetricsKey metricsKey,
String registryOpType,
List<String> registryClusterNames,
Long responseTime) |
void |
incrServiceRegisterFinishNum(MetricsKeyWrapper wrapper,
String serviceKey,
List<String> registryClusterNames,
int size,
Long responseTime) |
void |
incrServiceRegisterNum(MetricsKeyWrapper wrapper,
String serviceKey,
List<String> registryClusterNames,
int size) |
boolean |
isCollectEnabled() |
void |
setCollectEnabled(Boolean collectEnabled) |
void |
setNum(MetricsKeyWrapper metricsKey,
String serviceKey,
int num,
Map<String,String> attachments) |
addApplicationRt, addMethodRt, addServiceRt, addServiceRt, getEventMulticaster, increment, increment, increment, init, onEvent, onEventError, onEventFinish, setNumisSupportequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitMetricsisSupportpublic RegistryMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
public void setCollectEnabled(Boolean collectEnabled)
public boolean isCollectEnabled()
public List<MetricSample> collect()
public void incrMetricsNum(MetricsKey metricsKey, List<String> registryClusterNames)
public void incrRegisterFinishNum(MetricsKey metricsKey, String registryOpType, List<String> registryClusterNames, Long responseTime)
public void incrServiceRegisterNum(MetricsKeyWrapper wrapper, String serviceKey, List<String> registryClusterNames, int size)
public void incrServiceRegisterFinishNum(MetricsKeyWrapper wrapper, String serviceKey, List<String> registryClusterNames, int size, Long responseTime)
public void setNum(MetricsKeyWrapper metricsKey, String serviceKey, int num, Map<String,String> attachments)
public boolean calSamplesChanged()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.