org.apache.hadoop.yarn.server.nodemanager
Class NodeHealthCheckerService

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.service.CompositeService
          extended by org.apache.hadoop.yarn.server.nodemanager.NodeHealthCheckerService
All Implemented Interfaces:
Closeable, org.apache.hadoop.service.Service

public class NodeHealthCheckerService
extends org.apache.hadoop.service.CompositeService

The class which provides functionality of checking the health of the node and reporting back to the service for which the health checker has been asked to report.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
 
Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES
 
Constructor Summary
NodeHealthCheckerService()
           
 
Method Summary
 LocalDirsHandlerService getDiskHandler()
           
protected  void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeService, serviceStart, serviceStop
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeHealthCheckerService

public NodeHealthCheckerService()
Method Detail

serviceInit

protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
Overrides:
serviceInit in class org.apache.hadoop.service.CompositeService
Throws:
Exception

getDiskHandler

public LocalDirsHandlerService getDiskHandler()
Returns:
the disk handler


Copyright © 2013 Apache Software Foundation. All Rights Reserved.