Tabnine Logo
org.apache.hadoop.yarn.server.resourcemanager.rmnode
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.hadoop.yarn.server.resourcemanager.rmnode

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager.rmnode (Showing top 20 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

/**
 * Get rackname.
 * @return rackname
 */
public String getRackName() {
 return this.rmNode.getRackName();
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

/**
 * Get HTTP address for the node.
 * @return HTTP address for the node.
 */
public String getHttpAddress() {
 return this.rmNode.getHttpAddress();
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 @Override
 public void transition(RMNodeImpl rmNode, RMNodeEvent event) {
  RMNodeImpl.deactivateNode(rmNode, finalState);
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private RMNodeImpl getRebootedNode() {
 NodeId nodeId = BuilderUtils.newNodeId("localhost", 0);
 Resource capability = Resource.newInstance(4096, 4);
 RMNodeImpl node = new RMNodeImpl(nodeId, rmContext,null, 0, 0,
   null, capability, null);
 node.handle(new RMNodeStartedEvent(node.getNodeID(), null, null));
 Assert.assertEquals(NodeState.RUNNING, node.getState());
 node.handle(new RMNodeEvent(node.getNodeID(), RMNodeEventType.REBOOTING));
 Assert.assertEquals(NodeState.REBOOTED, node.getState());
 return node;
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private void sendStartedEvent(RMNode node) {
 ((RMNodeImpl) node)
   .handle(new RMNodeStartedEvent(node.getNodeID(), null, null));
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private void sendLostEvent(RMNode node) {
 ((RMNodeImpl) node)
   .handle(new RMNodeEvent(node.getNodeID(), RMNodeEventType.EXPIRE));
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private static NodeHealthStatus updateRMNodeFromStatusEvents(
  RMNodeImpl rmNode, RMNodeStatusEvent statusEvent) {
 // Switch the last heartbeatresponse.
 NodeHealthStatus remoteNodeHealthStatus = statusEvent.getNodeHealthStatus();
 rmNode.setHealthReport(remoteNodeHealthStatus.getHealthReport());
 rmNode.setLastHealthReportTime(remoteNodeHealthStatus
   .getLastHealthReportTime());
 rmNode.setAggregatedContainersUtilization(statusEvent
   .getAggregatedContainersUtilization());
 rmNode.setNodeUtilization(statusEvent.getNodeUtilization());
 return remoteNodeHealthStatus;
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

/**
 * Get the ID of the node which contains both its hostname and port.
 * @return The ID of the node.
 */
public NodeId getNodeID() {
 return this.rmNode.getNodeID();
}
origin: ch.cern.hadoop/hadoop-sls

@Override
public Resource getTotalCapability() {
 return node.getTotalCapability();
}
origin: ch.cern.hadoop/hadoop-sls

public RMNodeWrapper(RMNode node) {
 this.node = node;
 updates = node.pullContainerUpdates();
}

origin: ch.cern.hadoop/hadoop-sls

@Override
public String getNodeManagerVersion() {
 return node.getNodeManagerVersion();
}
origin: ch.cern.hadoop/hadoop-sls

@Override
public void updateNodeHeartbeatResponseForCleanup(
    NodeHeartbeatResponse nodeHeartbeatResponse) {
 node.updateNodeHeartbeatResponseForCleanup(nodeHeartbeatResponse);
}
origin: ch.cern.hadoop/hadoop-sls

@Override
public List<ApplicationId> getAppsToCleanup() {
 return node.getAppsToCleanup();
}
origin: ch.cern.hadoop/hadoop-sls

@Override
public NodeId getNodeID() {
 return node.getNodeID();
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

/**
 * Get rackname.
 * 
 * @return rackname
 */
public String getRackName() {
 return this.rmNode.getRackName();
}
origin: ch.cern.hadoop/hadoop-sls

@Override
public String getHttpAddress() {
 return node.getHttpAddress();
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

/**
 * Get the ID of the node which contains both its hostname and port.
 * 
 * @return the ID of the node
 */
public NodeId getNodeID() {
 return this.rmNode.getNodeID();
}
origin: ch.cern.hadoop/hadoop-sls

@Override
public String getRackName() {
 return node.getRackName();
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

/**
 * Get the ID of the node which contains both its hostname and port.
 * 
 * @return the ID of the node
 */
public NodeId getNodeID() {
 return this.rmNode.getNodeID();
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

/**
 * Get rackname.
 * 
 * @return rackname
 */
public String getRackName() {
 return this.rmNode.getRackName();
}
org.apache.hadoop.yarn.server.resourcemanager.rmnode

Most used classes

  • RMNode
    Node managers information on available resources and other static information.
  • UpdatedContainerInfo
  • RMNodeCleanAppEvent
  • RMNodeCleanContainerEvent
  • RMNodeEvent
  • RMNodeImpl,
  • RMNodeReconnectEvent,
  • RMNodeResourceUpdateEvent,
  • RMNodeStartedEvent,
  • RMNodeStatusEvent,
  • RMNodeImpl$ReconnectNodeTransition,
  • RMNodeDecommissioningEvent,
  • RMNodeSignalContainerEvent,
  • RMNodeUpdateContainerEvent
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now