public abstract class BaseStatComposite extends Object implements MetricsExport
MetricsCollector, and
provides an MetricsExport interface for exporting standard output formats.| Constructor and Description |
|---|
BaseStatComposite(ApplicationModel applicationModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
calcApplicationRt(String registryOpType,
Long responseTime) |
void |
calcMethodKeyRt(Invocation invocation,
String registryOpType,
Long responseTime) |
void |
calcServiceKeyRt(Invocation invocation,
String registryOpType,
Long responseTime) |
void |
calcServiceKeyRt(String serviceKey,
String registryOpType,
Long responseTime) |
boolean |
calSamplesChanged()
Check if samples have been changed.
|
List<MetricSample> |
export(MetricsCategory category)
export all.
|
ApplicationStatComposite |
getApplicationStatComposite() |
RtStatComposite |
getRtStatComposite() |
void |
incrementApp(MetricsKey metricsKey,
int size) |
void |
incrementMethodKey(MetricsKeyWrapper metricsKeyWrapper,
MethodMetric methodMetric,
int size) |
void |
incrementServiceKey(MetricsKeyWrapper metricsKeyWrapper,
String attServiceKey,
int size) |
void |
incrementServiceKey(MetricsKeyWrapper metricsKeyWrapper,
String attServiceKey,
Map<String,String> extra,
int size) |
void |
initMethodKey(MetricsKeyWrapper metricsKeyWrapper,
Invocation invocation) |
void |
setServiceKey(MetricsKeyWrapper metricsKey,
String serviceKey,
int num) |
void |
setServiceKey(MetricsKeyWrapper metricsKey,
String serviceKey,
int num,
Map<String,String> extra) |
public BaseStatComposite(ApplicationModel applicationModel)
public void calcServiceKeyRt(String serviceKey, String registryOpType, Long responseTime)
public void calcServiceKeyRt(Invocation invocation, String registryOpType, Long responseTime)
public void calcMethodKeyRt(Invocation invocation, String registryOpType, Long responseTime)
public void setServiceKey(MetricsKeyWrapper metricsKey, String serviceKey, int num)
public void setServiceKey(MetricsKeyWrapper metricsKey, String serviceKey, int num, Map<String,String> extra)
public void incrementApp(MetricsKey metricsKey, int size)
public void incrementServiceKey(MetricsKeyWrapper metricsKeyWrapper, String attServiceKey, int size)
public void incrementServiceKey(MetricsKeyWrapper metricsKeyWrapper, String attServiceKey, Map<String,String> extra, int size)
public void incrementMethodKey(MetricsKeyWrapper metricsKeyWrapper, MethodMetric methodMetric, int size)
public void initMethodKey(MetricsKeyWrapper metricsKeyWrapper, Invocation invocation)
public List<MetricSample> export(MetricsCategory category)
MetricsExportexport in interface MetricsExportpublic ApplicationStatComposite getApplicationStatComposite()
public RtStatComposite getRtStatComposite()
public boolean calSamplesChanged()
MetricsExportcalSamplesChanged in interface MetricsExportCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.