public class DbMetricsReporter extends Object
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected MetricsCollectionTask |
metricsCollectionTask |
protected MetricsRegistry |
metricsRegistry |
protected String |
reporterId |
protected long |
reportingIntervalInSeconds |
Constructor and Description |
---|
DbMetricsReporter(MetricsRegistry metricsRegistry,
CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
CommandExecutor |
getCommandExecutor() |
MetricsCollectionTask |
getMetricsCollectionTask() |
MetricsRegistry |
getMetricsRegistry() |
long |
getReportingIntervalInSeconds() |
protected void |
initMetricsCollectionTask() |
void |
reportNow() |
void |
setMetricsCollectionTask(MetricsCollectionTask metricsCollectionTask) |
void |
setReporterId(String reporterId) |
void |
setReportingIntervalInSeconds(long reportingIntervalInSeconds) |
void |
start() |
void |
stop() |
protected MetricsRegistry metricsRegistry
protected CommandExecutor commandExecutor
protected String reporterId
protected long reportingIntervalInSeconds
protected MetricsCollectionTask metricsCollectionTask
public DbMetricsReporter(MetricsRegistry metricsRegistry, CommandExecutor commandExecutor)
protected void initMetricsCollectionTask()
public void start()
public void stop()
public void reportNow()
public long getReportingIntervalInSeconds()
public void setReportingIntervalInSeconds(long reportingIntervalInSeconds)
public MetricsRegistry getMetricsRegistry()
public CommandExecutor getCommandExecutor()
public MetricsCollectionTask getMetricsCollectionTask()
public void setMetricsCollectionTask(MetricsCollectionTask metricsCollectionTask)
public void setReporterId(String reporterId)
Copyright © 2017. All rights reserved.