@Override public RoleStatus lookupRoleStatus(String name) throws YarnRuntimeException { return appState.lookupRoleStatus(name); }
@Override public RoleStatus lookupRoleStatus(int key) { return appState.lookupRoleStatus(key); }
@Override public RoleStatus lookupRoleStatus(String name) throws YarnRuntimeException { return appState.lookupRoleStatus(name); }
@Override public RoleStatus lookupRoleStatus(int key) { return appState.lookupRoleStatus(key); }
@Override public RoleStatus lookupRoleStatus(Container c) throws YarnRuntimeException { return appState.lookupRoleStatus(c); }
@Override public RoleStatus lookupRoleStatus(Container c) throws YarnRuntimeException { return appState.lookupRoleStatus(c); }
/** * Look up the status entry of a container or raise an exception * * @param c container * @return the status entry * @throws RuntimeException if the role cannot be found */ public RoleStatus lookupRoleStatus(Container c) { return lookupRoleStatus(ContainerPriority.extractRole(c)); }
/** * Look up the status entry of a container or raise an exception * * @param c container * @return the status entry * @throws RuntimeException if the role cannot be found */ public RoleStatus lookupRoleStatus(Container c) { return lookupRoleStatus(ContainerPriority.extractRole(c)); }
/** * Look up a role in the map * @param name role name * @return the instance * @throws YarnRuntimeException if not found */ public RoleStatus lookupRoleStatus(String name) throws YarnRuntimeException { ProviderRole providerRole = roles.get(name); if (providerRole == null) { throw new YarnRuntimeException("Unknown role " + name); } return lookupRoleStatus(providerRole.id); }
/** * Look up a role in the map * @param name role name * @return the instance * @throws YarnRuntimeException if not found */ public RoleStatus lookupRoleStatus(String name) throws YarnRuntimeException { ProviderRole providerRole = roles.get(name); if (providerRole == null) { throw new YarnRuntimeException("Unknown role " + name); } return lookupRoleStatus(providerRole.id); }
/** * Note that a container has been submitted for release; update internal state * and mark the associated ContainerInfo released field to indicate that * while it is still in the active list, it has been queued for release. * * @param container container * @throws SliderInternalStateException if there is no container of that ID * on the active list */ public synchronized void containerReleaseSubmitted(Container container) throws SliderInternalStateException { ContainerId id = container.getId(); //look up the container RoleInstance instance = getOwnedContainer(id); if (instance == null) { throw new SliderInternalStateException( "No active container with ID " + id); } //verify that it isn't already released if (containersBeingReleased.containsKey(id)) { throw new SliderInternalStateException( "Container %s already queued for release", id); } instance.released = true; containersBeingReleased.put(id, instance.container); RoleStatus role = lookupRoleStatus(instance.roleId); role.incReleasing(); roleHistory.onContainerReleaseSubmitted(container); }
/** * Note that a container has been submitted for release; update internal state * and mark the associated ContainerInfo released field to indicate that * while it is still in the active list, it has been queued for release. * * @param container container * @throws SliderInternalStateException if there is no container of that ID * on the active list */ public synchronized void containerReleaseSubmitted(Container container) throws SliderInternalStateException { ContainerId id = container.getId(); //look up the container RoleInstance instance = getOwnedContainer(id); if (instance == null) { throw new SliderInternalStateException( "No active container with ID " + id); } //verify that it isn't already released if (containersBeingReleased.containsKey(id)) { throw new SliderInternalStateException( "Container %s already queued for release", id); } instance.released = true; containersBeingReleased.put(id, instance.container); RoleStatus role = lookupRoleStatus(instance.roleId); role.incReleasing(); roleHistory.onContainerReleaseSubmitted(container); }
RoleStatus roleStatus = lookupRoleStatus(instance.roleId); roleStatus.incStarted(); Container container = instance.container;
RoleStatus roleStatus = lookupRoleStatus(instance.roleId); roleStatus.incStarted(); Container container = instance.container;
final RoleStatus role = lookupRoleStatus(container);
final RoleStatus role = lookupRoleStatus(container);
RoleInstance instance = getStartingContainers().remove(containerId); if (null != instance) { RoleStatus roleStatus = lookupRoleStatus(instance.roleId); instance.diagnostics = text; roleStatus.noteFailed(true, text, ContainerOutcome.Failed, containerId);
RoleInstance instance = getStartingContainers().remove(containerId); if (null != instance) { RoleStatus roleStatus = lookupRoleStatus(instance.roleId); instance.diagnostics = text; roleStatus.noteFailed(true, text, ContainerOutcome.Failed, containerId);