org.apache.hadoop.yarn.server.resourcemanager
Class ResourceTrackerService
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService
- All Implemented Interfaces:
- org.apache.hadoop.yarn.server.api.ResourceTracker, org.apache.hadoop.yarn.service.Service
public class ResourceTrackerService
- extends org.apache.hadoop.yarn.service.AbstractService
- implements org.apache.hadoop.yarn.server.api.ResourceTracker
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
|
Method Summary |
void |
init(org.apache.hadoop.conf.Configuration conf)
|
org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse |
nodeHeartbeat(org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatRequest request)
|
void |
recover(Store.RMState state)
|
org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerResponse |
registerNodeManager(org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerRequest request)
|
static org.apache.hadoop.net.Node |
resolve(String hostName)
resolving the network topology. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
getConfig, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceTrackerService
public ResourceTrackerService(RMContext rmContext,
NodesListManager nodesListManager,
NMLivelinessMonitor nmLivelinessMonitor,
org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager containerTokenSecretManager)
init
public void init(org.apache.hadoop.conf.Configuration conf)
- Specified by:
init in interface org.apache.hadoop.yarn.service.Service- Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService
start
public void start()
- Specified by:
start in interface org.apache.hadoop.yarn.service.Service- Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService
stop
public void stop()
- Specified by:
stop in interface org.apache.hadoop.yarn.service.Service- Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService
registerNodeManager
public org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerResponse registerNodeManager(org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
- Specified by:
registerNodeManager in interface org.apache.hadoop.yarn.server.api.ResourceTracker
- Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException
nodeHeartbeat
public org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatResponse nodeHeartbeat(org.apache.hadoop.yarn.server.api.protocolrecords.NodeHeartbeatRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
- Specified by:
nodeHeartbeat in interface org.apache.hadoop.yarn.server.api.ResourceTracker
- Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException
recover
public void recover(Store.RMState state)
resolve
public static org.apache.hadoop.net.Node resolve(String hostName)
- resolving the network topology.
- Parameters:
hostName - the hostname of this node.
- Returns:
- the resolved
Node for this nodemanager.
Copyright © 2012 Apache Software Foundation. All Rights Reserved.