public class MetricsRegistry extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Meter> |
dbMeters |
protected boolean |
isCollectingTelemetryMetrics |
protected Map<String,Meter> |
telemetryMeters |
Constructor and Description |
---|
MetricsRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
createDbMeter(String name)
Creates a meter only for database collection.
|
void |
createMeter(String name)
Creates a meter for both database and telemetry collection.
|
Meter |
getDbMeterByName(String name) |
Map<String,Meter> |
getDbMeters() |
Map<String,Meter> |
getTelemetryMeters() |
boolean |
isCollectingTelemetryMetrics() |
protected void |
markOccurrence(Map<String,Meter> meters,
String name,
long times) |
void |
markOccurrence(String name) |
void |
markOccurrence(String name,
long times) |
void |
markTelemetryOccurrence(String name,
long times) |
void |
setCollectingTelemetryMetrics(boolean isCollectingTelemetryMetrics) |
public boolean isCollectingTelemetryMetrics()
public void setCollectingTelemetryMetrics(boolean isCollectingTelemetryMetrics)
public void markOccurrence(String name)
public void markOccurrence(String name, long times)
public void markTelemetryOccurrence(String name, long times)
public void createMeter(String name)
public void createDbMeter(String name)
Copyright © 2021. All rights reserved.