@Override public void transition(RMNodeImpl rmNode, RMNodeEvent event) { RMNodeUpdateContainerEvent de = (RMNodeUpdateContainerEvent) event; for (Map.Entry<Container, ContainerUpdateType> e : de.getToBeUpdatedContainers().entrySet()) { // NOTE: This is required for backward compatibility. if (ContainerUpdateType.DECREASE_RESOURCE == e.getValue()) { rmNode.toBeDecreasedContainers.put(e.getKey().getId(), e.getKey()); } rmNode.toBeUpdatedContainers.put(e.getKey().getId(), e.getKey()); } } }
container.containerAllocationExpirer.unregister( new AllocationExpirationInfo(event.getContainerId())); container.eventHandler.handle(new RMNodeUpdateContainerEvent( container.nodeId, Collections.singletonMap(container.getContainer(),
if (autoUpdate) { this.rmContext.getDispatcher().getEventHandler().handle( new RMNodeUpdateContainerEvent(rmContainer.getNodeId(), Collections.singletonMap( rmContainer.getContainer(), updateType)));