public class DbMetricsReporter extends Object
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected MetricsCollectionTask |
metricsCollectionTask |
protected MetricsRegistry |
metricsRegistry |
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 |
initMetricsColletionTask() |
void |
reportNow() |
void |
setMetricsCollectionTask(MetricsCollectionTask metricsCollectionTask) |
void |
setReportingIntervalInSeconds(long reportingIntervalInSeconds) |
void |
start() |
void |
stop() |
protected MetricsRegistry metricsRegistry
protected CommandExecutor commandExecutor
protected long reportingIntervalInSeconds
protected MetricsCollectionTask metricsCollectionTask
public DbMetricsReporter(MetricsRegistry metricsRegistry, CommandExecutor commandExecutor)
protected void initMetricsColletionTask()
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)
Copyright © 2018. All rights reserved.