Class DbMetricsReporter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.metrics.reporter.DbMetricsReporter
-
public class DbMetricsReporter extends java.lang.Object
- Author:
- Daniel Meyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
DbMetricsReporter.ReportDbMetricsValueCmd
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected MetricsCollectionTask
metricsCollectionTask
protected MetricsRegistry
metricsRegistry
protected java.lang.String
reporterId
protected long
reportingIntervalInSeconds
-
Constructor Summary
Constructors Constructor Description DbMetricsReporter(MetricsRegistry metricsRegistry, CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandExecutor
getCommandExecutor()
MetricsCollectionTask
getMetricsCollectionTask()
MetricsRegistry
getMetricsRegistry()
long
getReportingIntervalInSeconds()
protected void
initMetricsCollectionTask()
void
reportNow()
void
reportValueAtOnce(java.lang.String name, long value)
void
setMetricsCollectionTask(MetricsCollectionTask metricsCollectionTask)
void
setReporterId(java.lang.String reporterId)
void
setReportingIntervalInSeconds(long reportingIntervalInSeconds)
void
start()
void
stop()
-
-
-
Field Detail
-
metricsRegistry
protected MetricsRegistry metricsRegistry
-
commandExecutor
protected CommandExecutor commandExecutor
-
reporterId
protected java.lang.String reporterId
-
reportingIntervalInSeconds
protected long reportingIntervalInSeconds
-
metricsCollectionTask
protected MetricsCollectionTask metricsCollectionTask
-
-
Constructor Detail
-
DbMetricsReporter
public DbMetricsReporter(MetricsRegistry metricsRegistry, CommandExecutor commandExecutor)
-
-
Method Detail
-
initMetricsCollectionTask
protected void initMetricsCollectionTask()
-
start
public void start()
-
stop
public void stop()
-
reportNow
public void reportNow()
-
reportValueAtOnce
public void reportValueAtOnce(java.lang.String name, long value)
-
getReportingIntervalInSeconds
public long getReportingIntervalInSeconds()
-
setReportingIntervalInSeconds
public void setReportingIntervalInSeconds(long reportingIntervalInSeconds)
-
getMetricsRegistry
public MetricsRegistry getMetricsRegistry()
-
getCommandExecutor
public CommandExecutor getCommandExecutor()
-
getMetricsCollectionTask
public MetricsCollectionTask getMetricsCollectionTask()
-
setMetricsCollectionTask
public void setMetricsCollectionTask(MetricsCollectionTask metricsCollectionTask)
-
setReporterId
public void setReporterId(java.lang.String reporterId)
-
-