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

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

public class NodeStatusUpdaterImpl
extends org.apache.hadoop.service.AbstractService
implements NodeStatusUpdater


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Constructor Summary
NodeStatusUpdaterImpl(Context context, org.apache.hadoop.yarn.event.Dispatcher dispatcher, NodeHealthCheckerService healthChecker, NodeManagerMetrics metrics)
           
 
Method Summary
 org.apache.hadoop.yarn.server.api.records.NodeStatus getNodeStatusAndUpdateContainersInContext()
           
protected  org.apache.hadoop.yarn.server.api.ResourceTracker getRMClient()
           
 long getRMIdentifier()
           
protected  boolean isTokenKeepAliveEnabled(org.apache.hadoop.conf.Configuration conf)
           
protected  void rebootNodeStatusUpdater()
           
protected  void registerWithRM()
           
 void sendOutofBandHeartBeat()
           
protected  void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
protected  void serviceStart()
           
protected  void serviceStop()
           
protected  void startStatusUpdater()
           
protected  void stopRMProxy()
           
 
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
 
Methods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
 

Constructor Detail

NodeStatusUpdaterImpl

public NodeStatusUpdaterImpl(Context context,
                             org.apache.hadoop.yarn.event.Dispatcher dispatcher,
                             NodeHealthCheckerService healthChecker,
                             NodeManagerMetrics metrics)
Method Detail

serviceInit

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

serviceStart

protected void serviceStart()
                     throws Exception
Overrides:
serviceStart in class org.apache.hadoop.service.AbstractService
Throws:
Exception

serviceStop

protected void serviceStop()
                    throws Exception
Overrides:
serviceStop in class org.apache.hadoop.service.AbstractService
Throws:
Exception

rebootNodeStatusUpdater

protected void rebootNodeStatusUpdater()

stopRMProxy

protected void stopRMProxy()

isTokenKeepAliveEnabled

@InterfaceAudience.Private
protected boolean isTokenKeepAliveEnabled(org.apache.hadoop.conf.Configuration conf)

getRMClient

protected org.apache.hadoop.yarn.server.api.ResourceTracker getRMClient()
                                                                 throws IOException
Throws:
IOException

registerWithRM

protected void registerWithRM()
                       throws org.apache.hadoop.yarn.exceptions.YarnException,
                              IOException
Throws:
org.apache.hadoop.yarn.exceptions.YarnException
IOException

getNodeStatusAndUpdateContainersInContext

public org.apache.hadoop.yarn.server.api.records.NodeStatus getNodeStatusAndUpdateContainersInContext()
Specified by:
getNodeStatusAndUpdateContainersInContext in interface NodeStatusUpdater

sendOutofBandHeartBeat

public void sendOutofBandHeartBeat()
Specified by:
sendOutofBandHeartBeat in interface NodeStatusUpdater

getRMIdentifier

public long getRMIdentifier()
Specified by:
getRMIdentifier in interface NodeStatusUpdater

startStatusUpdater

protected void startStatusUpdater()


Copyright © 2013 Apache Software Foundation. All Rights Reserved.