org.apache.hadoop.yarn.util
Class AbstractLivelinessMonitor<O>
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.yarn.util.AbstractLivelinessMonitor<O>
- All Implemented Interfaces:
- Service
public abstract class AbstractLivelinessMonitor<O>
- extends AbstractService
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
Service.STATE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_EXPIRE
public static final int DEFAULT_EXPIRE
- See Also:
- Constant Field Values
AbstractLivelinessMonitor
public AbstractLivelinessMonitor(String name,
Clock clock)
start
public void start()
- Description copied from class:
AbstractService
- Start the service.
The transition should be from
Service.STATE.INITED to Service.STATE.STARTED
unless the operation failed and an exception was raised.
- Specified by:
start in interface Service- Overrides:
start in class AbstractService
stop
public void stop()
- Description copied from class:
AbstractService
- Stop the service.
This operation must be designed to complete regardless of the initial state
of the service, including the state of all its internal fields.
- Specified by:
stop in interface Service- Overrides:
stop in class AbstractService
expire
protected abstract void expire(O ob)
setExpireInterval
protected void setExpireInterval(int expireInterval)
setMonitorInterval
protected void setMonitorInterval(int monitorInterval)
receivedPing
public void receivedPing(O ob)
register
public void register(O ob)
unregister
public void unregister(O ob)
Copyright © 2012 Apache Software Foundation. All Rights Reserved.