@Override public void addNodeAttributes( Map<String, Set<NodeAttribute>> nodeAttributeMapping) throws IOException { processMapping(nodeAttributeMapping, AttributeMappingOperationType.ADD); }
@Override public void handle(NodeAttributesStoreEvent event) { handleStoreEvent(event); } }
protected RMNodeLabelsManager createNodeLabelManager() throws InstantiationException, IllegalAccessException { return new RMNodeLabelsManager(); }
@Override protected RMNodeLabelsManager createNodeLabelManager() { RMNodeLabelsManager mgr = new NullRMNodeLabelsManager(); mgr.init(getConfig()); return mgr; } };
public void updateNodeResource(NodeId node, Resource newResource) { deactivateNode(node); activateNode(node, newResource); }
protected NodeAttributesManager createNodeAttributesManager() { NodeAttributesManagerImpl namImpl = new NodeAttributesManagerImpl(); namImpl.setRMContext(rmContext); return namImpl; }
public void updateNodeResource(NodeId node, Resource newResource) { deactivateNode(node); activateNode(node, newResource); }
@Override protected RMNodeLabelsManager createNodeLabelManager() { RMNodeLabelsManager mgr = new NullRMNodeLabelsManager(); mgr.init(getConfig()); return mgr; } };
public void updateNodeResource(NodeId node, Resource newResource) throws IOException { deactivateNode(node); activateNode(node, newResource); }
protected RMNodeLabelsManager createNodeLabelManager() throws InstantiationException, IllegalAccessException { return new RMNodeLabelsManager(); }
@Override public void removeNodeAttributes( Map<String, Set<NodeAttribute>> nodeAttributeMapping) throws IOException { processMapping(nodeAttributeMapping, AttributeMappingOperationType.REMOVE); }
@Override protected RMNodeLabelsManager createNodeLabelManager() { RMNodeLabelsManager mgr = new NullRMNodeLabelsManager(); mgr.init(getConfig()); return mgr; } };
protected RMNodeLabelsManager createNodeLabelManager() throws InstantiationException, IllegalAccessException { return new RMNodeLabelsManager(); }
private void processMapping( Map<String, Set<NodeAttribute>> nodeAttributeMapping, AttributeMappingOperationType mappingType) throws IOException { processMapping(nodeAttributeMapping, mappingType, NodeAttribute.PREFIX_CENTRALIZED); }
@Override protected RMNodeLabelsManager createNodeLabelManager() { RMNodeLabelsManager mgr = new NullRMNodeLabelsManager(); mgr.init(getConfig()); return mgr; } };
@Override public void replaceNodeAttributes(String prefix, Map<String, Set<NodeAttribute>> nodeAttributeMapping) throws IOException { processMapping(nodeAttributeMapping, AttributeMappingOperationType.REPLACE, prefix); }
@Override protected RMNodeLabelsManager createNodeLabelManager() { RMNodeLabelsManager mgr = new NullRMNodeLabelsManager(); mgr.init(getConfig()); return mgr; } };
@Override protected RMNodeLabelsManager createNodeLabelManager() { RMNodeLabelsManager mgr = new NullRMNodeLabelsManager(); mgr.init(getConfig()); return mgr; } };
@Override protected RMNodeLabelsManager createNodeLabelManager() { RMNodeLabelsManager mgr = new NullRMNodeLabelsManager(); mgr.init(getConfig()); return mgr; } };
@Before public void setUp() throws Exception { conf = new YarnConfiguration(); conf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class, ResourceScheduler.class); mgr = new NullRMNodeLabelsManager(); mgr.init(conf); }