Examples of RMNodeState


Examples of org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeState

      throw new NotFoundException("Null ResourceScheduler instance");
    }
    Collection<RMNode> rmNodes = this.rm.getRMContext().getRMNodes().values();
    boolean isInactive = false;
    if (filterState != null && !filterState.isEmpty()) {
      RMNodeState nodeState = RMNodeState.valueOf(filterState.toUpperCase());
      switch (nodeState) {
      case DECOMMISSIONED:
      case LOST:
      case REBOOTED:
        rmNodes = this.rm.getRMContext().getInactiveRMNodes().values();
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeState

          th(".containers", "Containers").
          th(".mem", "Mem Used").
          th(".mem", "Mem Avail").
          _()._().
          tbody();
      RMNodeState stateFilter = null;
      if(type != null && !type.isEmpty()) {
        stateFilter = RMNodeState.valueOf(type.toUpperCase());
      }
      Collection<RMNode> rmNodes = this.rmContext.getRMNodes().values();
      boolean isInactive = false;
      if (stateFilter != null) {
        switch (stateFilter) {
        case DECOMMISSIONED:
        case LOST:
        case REBOOTED:
          rmNodes = this.rmContext.getInactiveRMNodes().values();
          isInactive = true;
          break;
        }
      }
      for (RMNode ni : rmNodes) {
        if(stateFilter != null) {
          RMNodeState state = ni.getState();
          if(!stateFilter.equals(state)) {
            continue;
          }
        } else {
          // No filter. User is asking for all nodes. Make sure you skip the
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeState

      throw new NotFoundException("Null ResourceScheduler instance");
    }
    Collection<RMNode> rmNodes = this.rm.getRMContext().getRMNodes().values();
    boolean isInactive = false;
    if (filterState != null && !filterState.isEmpty()) {
      RMNodeState nodeState = RMNodeState.valueOf(filterState.toUpperCase());
      switch (nodeState) {
      case DECOMMISSIONED:
      case LOST:
      case REBOOTED:
        rmNodes = this.rm.getRMContext().getInactiveRMNodes().values();
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeState

          th(".containers", "Containers").
          th(".mem", "Mem Used").
          th(".mem", "Mem Avail").
          _()._().
          tbody();
      RMNodeState stateFilter = null;
      if(type != null && !type.isEmpty()) {
        stateFilter = RMNodeState.valueOf(type.toUpperCase());
      }
      Collection<RMNode> rmNodes = this.rmContext.getRMNodes().values();
      boolean isInactive = false;
      if (stateFilter != null) {
        switch (stateFilter) {
        case DECOMMISSIONED:
        case LOST:
        case REBOOTED:
          rmNodes = this.rmContext.getInactiveRMNodes().values();
          isInactive = true;
          break;
        }
      }
      for (RMNode ni : rmNodes) {
        if(stateFilter != null) {
          RMNodeState state = ni.getState();
          if(!stateFilter.equals(state)) {
            continue;
          }
        } else {
          // No filter. User is asking for all nodes. Make sure you skip the
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeState

          th(".containers", "Containers").
          th(".mem", "Mem Used").
          th(".mem", "Mem Avail").
          _()._().
          tbody();
      RMNodeState stateFilter = null;
      if(type != null && !type.isEmpty()) {
        stateFilter = RMNodeState.valueOf(type.toUpperCase());
      }
      for (RMNode ni : this.rmContext.getRMNodes().values()) {
        if(stateFilter != null) {
          RMNodeState state = ni.getState();
          if(!stateFilter.equals(state)) {
            continue;
          }
        }
        NodeId id = ni.getNodeID();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.