org.apache.oozie.service
Class MetricsInstrumentationService
java.lang.Object
org.apache.oozie.service.InstrumentationService
org.apache.oozie.service.MetricsInstrumentationService
- All Implemented Interfaces:
- Service
public class MetricsInstrumentationService
- extends InstrumentationService
This service provides an 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.
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricsInstrumentationService
public MetricsInstrumentationService()
init
public void init(Services services)
throws ServiceException
- Initialize the metrics instrumentation service.
- Specified by:
init in interface Service- Overrides:
init in class InstrumentationService
- Parameters:
services - services instance.
- Throws:
ServiceException
destroy
public void destroy()
- Destroy the metrics instrumentation service.
- Specified by:
destroy in interface Service- Overrides:
destroy in class InstrumentationService
isEnabled
public static boolean isEnabled()
- Returns if the MetricsInstrumentationService is enabled or not.
- Returns:
- true if the MetricsInstrumentationService is enabled; false if not
Copyright © 2015 Apache Software Foundation. All Rights Reserved.