org.apache.oozie.service
Class MetricsInstrumentationService

java.lang.Object
  extended by org.apache.oozie.service.InstrumentationService
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.oozie.service.InstrumentationService
CONF_LOGGING_INTERVAL, CONF_PREFIX, instrumentation
 
Fields inherited from interface org.apache.oozie.service.Service
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND
 
Constructor Summary
MetricsInstrumentationService()
           
 
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 org.apache.oozie.service.InstrumentationService
get, getInterface, initLogging, mapToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsInstrumentationService

public MetricsInstrumentationService()
Method Detail

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.