org.apache.hadoop.yarn.server.nodemanager
Class NodeStatusUpdaterImpl
java.lang.Object
org.apache.hadoop.service.AbstractService
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 classes/interfaces inherited from interface org.apache.hadoop.service.Service |
org.apache.hadoop.service.Service.STATE |
| 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 interface org.apache.hadoop.service.Service |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop |
NodeStatusUpdaterImpl
public NodeStatusUpdaterImpl(Context context,
org.apache.hadoop.yarn.event.Dispatcher dispatcher,
NodeHealthCheckerService healthChecker,
NodeManagerMetrics metrics)
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.