public class MetricsInstrumentationService extends InstrumentationService
Instrumentation
instance mostly compatible with the original Instrumentation, but backed by
Codahale Metrics. This service depends on the SchedulerService
.
The InstrumentationService.CONF_LOGGING_INTERVAL
configuration property indicates how often snapshots of the instrumentation should be logged.
CONF_LOGGING_INTERVAL, CONF_PREFIX, instrumentation
DEFAULT_LOCK_TIMEOUT, lockTimeout
Constructor and Description |
---|
MetricsInstrumentationService() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the metrics instrumentation service.
|
void |
init(Services services)
Initialize the metrics instrumentation service.
|
static boolean |
isEnabled()
Returns if the MetricsInstrumentationService is enabled or not.
|
get, getInterface
public MetricsInstrumentationService()
public void init(Services services) throws ServiceException
init
in interface Service
init
in class InstrumentationService
services
- services instance.ServiceException
public void destroy()
destroy
in interface Service
destroy
in class InstrumentationService
public static boolean isEnabled()
Copyright © 2018 Apache Software Foundation. All rights reserved.