Class RegistryMetricsCollector
java.lang.Object
org.apache.dubbo.metrics.listener.AbstractMetricsListener<RegistryEvent>
org.apache.dubbo.metrics.collector.CombMetricsCollector<RegistryEvent>
org.apache.dubbo.metrics.registry.collector.RegistryMetricsCollector
- All Implemented Interfaces:
ApplicationMetricsCollector<RegistryEvent>,MethodMetricsCollector<RegistryEvent>,MetricsCollector<RegistryEvent>,ServiceMetricsCollector<RegistryEvent>,MetricsLifeListener<RegistryEvent>,MetricsListener<RegistryEvent>
Registry implementation of
MetricsCollector-
Constructor Summary
ConstructorsConstructorDescriptionRegistryMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) -
Method Summary
Modifier and TypeMethodDescriptioncollect()voidincrMetricsNum(MetricsKey metricsKey, List<String> registryClusterNames) voidincrRegisterFinishNum(MetricsKey metricsKey, String registryOpType, List<String> registryClusterNames, Long responseTime) voidincrServiceRegisterFinishNum(MetricsKeyWrapper wrapper, String serviceKey, List<String> registryClusterNames, int size, Long responseTime) voidincrServiceRegisterNum(MetricsKeyWrapper wrapper, String serviceKey, List<String> registryClusterNames, int size) booleanvoidsetCollectEnabled(Boolean collectEnabled) voidMethods inherited from class org.apache.dubbo.metrics.collector.CombMetricsCollector
addApplicationRt, addMethodRt, addServiceRt, addServiceRt, getEventMulticaster, increment, increment, increment, init, onEvent, onEventError, onEventFinish, setAppNum, setNumMethods inherited from class org.apache.dubbo.metrics.listener.AbstractMetricsListener
isSupportMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.metrics.collector.MetricsCollector
initMetricsMethods inherited from interface org.apache.dubbo.metrics.listener.MetricsListener
isSupport
-
Constructor Details
-
RegistryMetricsCollector
public RegistryMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
-
-
Method Details
-
setCollectEnabled
-
isCollectEnabled
public boolean isCollectEnabled() -
collect
-
incrMetricsNum
-
incrRegisterFinishNum
public void incrRegisterFinishNum(MetricsKey metricsKey, String registryOpType, List<String> registryClusterNames, Long responseTime) -
incrServiceRegisterNum
public void incrServiceRegisterNum(MetricsKeyWrapper wrapper, String serviceKey, List<String> registryClusterNames, int size) -
incrServiceRegisterFinishNum
public void incrServiceRegisterFinishNum(MetricsKeyWrapper wrapper, String serviceKey, List<String> registryClusterNames, int size, Long responseTime) -
setNum
public void setNum(MetricsKeyWrapper metricsKey, String serviceKey, int num, Map<String, String> attachments)
-