/** * Releases a container based on container id * @param containerId * @return * @throws SliderInternalStateException */ public List<AbstractRMOperation> releaseContainer(ContainerId containerId) throws SliderInternalStateException { List<AbstractRMOperation> operations = new ArrayList<AbstractRMOperation>(); List<RoleInstance> activeRoleInstances = cloneOwnedContainerList(); for (RoleInstance role : activeRoleInstances) { if (role.container.getId().equals(containerId)) { containerReleaseSubmitted(role.container); operations.add(new ContainerReleaseOperation(role.getId())); } } return operations; }
/** * Releases a container based on container id * @param containerId * @return * @throws SliderInternalStateException */ public List<AbstractRMOperation> releaseContainer(ContainerId containerId) throws SliderInternalStateException { List<AbstractRMOperation> operations = new ArrayList<AbstractRMOperation>(); List<RoleInstance> activeRoleInstances = cloneOwnedContainerList(); for (RoleInstance role : activeRoleInstances) { if (role.container.getId().equals(containerId)) { containerReleaseSubmitted(role.container); operations.add(new ContainerReleaseOperation(role.getId())); } } return operations; }
log.info("Releasing container. Log: " + url); try { containerReleaseSubmitted(possible); } catch (SliderInternalStateException e) { log.warn("when releasing container {} :", possible, e);
log.info("Releasing container. Log: " + url); try { containerReleaseSubmitted(possible); } catch (SliderInternalStateException e) { log.warn("when releasing container {} :", possible, e);
containerReleaseSubmitted(possible.container); operations.add(new ContainerReleaseOperation(possible.getId()));
containerReleaseSubmitted(possible.container); operations.add(new ContainerReleaseOperation(possible.getId()));