public class MetricsServiceImpl extends java.lang.Object implements MetricsService
COUNTER_ACTIVE_REQUESTS, METER_ALL_REQUESTS, METER_BAD_REQUESTS, METER_INTERNAL_SERVER_ERRORS, METER_ROUTES_NOT_FOUND| Constructor and Description |
|---|
MetricsServiceImpl(com.codahale.metrics.MetricRegistry appMetrics,
NinjaProperties ninjaProps) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostname()
Returns the hostname of the server.
|
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Returns the metric registry.
|
void |
start()
Start the Ninja Metrics service.
|
void |
stop()
Stops the Ninja Metrics service.
|
@Inject
public MetricsServiceImpl(com.codahale.metrics.MetricRegistry appMetrics,
NinjaProperties ninjaProps)
public void start()
MetricsServicestart in interface MetricsServicepublic void stop()
MetricsServicestop in interface MetricsServicepublic com.codahale.metrics.MetricRegistry getMetricRegistry()
MetricsServicegetMetricRegistry in interface MetricsServicepublic java.lang.String getHostname()
MetricsServicegetHostname in interface MetricsServiceCopyright © 2014. All Rights Reserved.