Package org.apache.dubbo.metrics.data
Class BaseStatComposite
java.lang.Object
org.apache.dubbo.metrics.data.BaseStatComposite
- All Implemented Interfaces:
MetricsExport
As a data aggregator, use internal data containers calculates and classifies
the registry data collected by
MetricsCollector, and
provides an MetricsExport interface for exporting standard output formats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcApplicationRt(String registryOpType, Long responseTime) voidcalcMethodKeyRt(Invocation invocation, String registryOpType, Long responseTime) voidcalcServiceKeyRt(String serviceKey, String registryOpType, Long responseTime) voidcalcServiceKeyRt(Invocation invocation, String registryOpType, Long responseTime) export(MetricsCategory category) export all.voidincrementApp(MetricsKey metricsKey, int size) voidincrementMethodKey(MetricsKeyWrapper metricsKeyWrapper, MethodMetric methodMetric, int size) voidincrementServiceKey(MetricsKeyWrapper metricsKeyWrapper, String attServiceKey, int size) voidincrementServiceKey(MetricsKeyWrapper metricsKeyWrapper, String attServiceKey, Map<String, String> extra, int size) voidinitMethodKey(MetricsKeyWrapper metricsKeyWrapper, Invocation invocation) voidsetAppKey(MetricsKey metricsKey, Long num) voidsetServiceKey(MetricsKeyWrapper metricsKey, String serviceKey, int num) voidsetServiceKey(MetricsKeyWrapper metricsKey, String serviceKey, int num, Map<String, String> extra)
-
Constructor Details
-
BaseStatComposite
-
-
Method Details
-
calcApplicationRt
-
calcServiceKeyRt
-
calcServiceKeyRt
-
calcMethodKeyRt
-
setServiceKey
-
setServiceKey
public void setServiceKey(MetricsKeyWrapper metricsKey, String serviceKey, int num, Map<String, String> extra) -
incrementApp
-
incrementServiceKey
public void incrementServiceKey(MetricsKeyWrapper metricsKeyWrapper, String attServiceKey, int size) -
incrementServiceKey
public void incrementServiceKey(MetricsKeyWrapper metricsKeyWrapper, String attServiceKey, Map<String, String> extra, int size) -
incrementMethodKey
public void incrementMethodKey(MetricsKeyWrapper metricsKeyWrapper, MethodMetric methodMetric, int size) -
initMethodKey
-
export
Description copied from interface:MetricsExportexport all.- Specified by:
exportin interfaceMetricsExport
-
getApplicationStatComposite
-
getRtStatComposite
-
setAppKey
-