org.apache.hadoop.yarn.util
Class AbstractLivelinessMonitor<O>

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.yarn.util.AbstractLivelinessMonitor<O>
All Implemented Interfaces:
Service

public abstract class AbstractLivelinessMonitor<O>
extends AbstractService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
Service.STATE
 
Field Summary
static int DEFAULT_EXPIRE
           
 
Constructor Summary
AbstractLivelinessMonitor(String name, Clock clock)
           
 
Method Summary
protected abstract  void expire(O ob)
           
 void receivedPing(O ob)
           
 void register(O ob)
           
protected  void setExpireInterval(int expireInterval)
           
protected  void setMonitorInterval(int monitorInterval)
           
 void start()
           
 void stop()
           
 void unregister(O ob)
           
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, init, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EXPIRE

public static final int DEFAULT_EXPIRE
See Also:
Constant Field Values
Constructor Detail

AbstractLivelinessMonitor

public AbstractLivelinessMonitor(String name,
                                 Clock clock)
Method Detail

start

public void start()
Specified by:
start in interface Service
Overrides:
start in class AbstractService

stop

public void stop()
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.