org.apache.oozie.service
Class JvmPauseMonitorService
java.lang.Object
org.apache.oozie.service.JvmPauseMonitorService
- All Implemented Interfaces:
- Service
public class JvmPauseMonitorService
- extends Object
- implements Service
This class sets up a simple thread that sleeps for a short period of time. If the sleep takes significantly longer than its
target time, it implies that the JVM or host machine has paused processing, which may cause other problems. If such a pause is
detected, the thread logs a message and updates the Instrumentation.
Adapted from org.apache.hadoop.util.JvmPauseMonitor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONF_PREFIX
public static final String CONF_PREFIX
- See Also:
- Constant Field Values
JvmPauseMonitorService
public JvmPauseMonitorService()
init
public void init(Services services)
throws ServiceException
- Description copied from interface:
Service
- Initialize the service. Invoked by the
Service singleton at start up time.
- Specified by:
init in interface Service
- Parameters:
services - services singleton initializing the service.
- Throws:
ServiceException - thrown if the service could not initialize.
destroy
public void destroy()
- Description copied from interface:
Service
- Destroy the service. Invoked by the
Service singleton at shutdown time.
- Specified by:
destroy in interface Service
getInterface
public Class<? extends Service> getInterface()
- Description copied from interface:
Service
- Return the public interface of the service. Services are retrieved by its public interface. Specializations
of services must return the public interface.
- Specified by:
getInterface in interface Service
- Returns:
- the interface of the service.
Copyright © 2015 Apache Software Foundation. All Rights Reserved.