Class MetricsRegistry
- java.lang.Object
-
- org.camunda.bpm.engine.impl.metrics.MetricsRegistry
-
public class MetricsRegistry extends Object
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Meter>
dbMeters
protected boolean
isCollectingTelemetryMetrics
protected Map<String,Meter>
telemetryMeters
-
Constructor Summary
Constructors Constructor Description MetricsRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
void
markOccurrence(String name)
void
markOccurrence(String name, long times)
protected void
markOccurrence(Map<String,Meter> meters, String name, long times)
void
markTelemetryOccurrence(String name, long times)
void
setCollectingTelemetryMetrics(boolean isCollectingTelemetryMetrics)
-
-
-
Method Detail
-
isCollectingTelemetryMetrics
public boolean isCollectingTelemetryMetrics()
-
setCollectingTelemetryMetrics
public void setCollectingTelemetryMetrics(boolean isCollectingTelemetryMetrics)
-
markOccurrence
public void markOccurrence(String name)
-
markOccurrence
public void markOccurrence(String name, long times)
-
markTelemetryOccurrence
public void markTelemetryOccurrence(String name, long times)
-
createMeter
public void createMeter(String name)
Creates a meter for both database and telemetry collection.
-
createDbMeter
public void createDbMeter(String name)
Creates a meter only for database collection.
-
-