public class MonitoringManagerImpl extends Object implements MonitoringManager
Modifier and Type | Field and Description |
---|---|
com.codahale.metrics.health.HealthCheckRegistry |
healthCheckRegistry
Define metric and health check registries.
|
com.codahale.metrics.MetricRegistry |
metricRegistry |
Constructor and Description |
---|
MonitoringManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Set<Object> |
getApplicationSingletons()
Used by application to get singletons for Jersey.
|
com.codahale.metrics.health.HealthCheckRegistry |
getHealthCheckRegistry() |
com.codahale.metrics.MetricRegistry |
getMetricRegistry() |
void |
init()
Initializes metrics.
|
protected void |
initGanglia()
Initializes Ganglia Reporter if configured.
|
protected void |
initGraphite()
Initializes Graphite reporter if configured.
|
protected void |
initHealthCheck()
Initializes health check.
|
protected void |
initJmx()
Initializes JMX Reporter if configured.
|
com.codahale.metrics.Counter |
newCounter(Class clazz,
String name)
Creates new counter.
|
com.codahale.metrics.Timer |
newTimer(Class clazz,
String name)
Creates new timer.
|
public final com.codahale.metrics.health.HealthCheckRegistry healthCheckRegistry
public final com.codahale.metrics.MetricRegistry metricRegistry
public Set<Object> getApplicationSingletons()
MonitoringManager
getApplicationSingletons
in interface MonitoringManager
public com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()
getHealthCheckRegistry
in interface MonitoringManager
public com.codahale.metrics.MetricRegistry getMetricRegistry()
getMetricRegistry
in interface MonitoringManager
public void init()
MonitoringManager
init
in interface MonitoringManager
public com.codahale.metrics.Counter newCounter(Class clazz, String name)
MonitoringManager
newCounter
in interface MonitoringManager
public com.codahale.metrics.Timer newTimer(Class clazz, String name)
MonitoringManager
newTimer
in interface MonitoringManager
protected void initGanglia()
protected void initGraphite()
protected void initHealthCheck()
protected void initJmx()
Copyright © 2011-2018 restSQL Project Contributors