public class MetricsServiceImpl extends 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 |
---|---|
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()
MetricsService
start
in interface MetricsService
public void stop()
MetricsService
stop
in interface MetricsService
public com.codahale.metrics.MetricRegistry getMetricRegistry()
MetricsService
getMetricRegistry
in interface MetricsService
public String getHostname()
MetricsService
getHostname
in interface MetricsService
Copyright © 2016. All Rights Reserved.