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