nodeManager.getNMContext().getContainerManager().stopContainers(scr);
/** * Get the status of the OPPORTUNISTIC containers. * @return the status of the OPPORTUNISTIC containers. */ private OpportunisticContainersStatus getOpportunisticContainersStatus() { OpportunisticContainersStatus status = this.context.getContainerManager().getOpportunisticContainersStatus(); return status; }
public ContainersMonitor getContainersMonitor() { return this.context.getContainerManager().getContainersMonitor(); }
/** * Get the aggregated utilization of the containers in this node. * @return Resource utilization of all the containers. */ private ResourceUtilization getContainersUtilization() { ContainerManagerImpl containerManager = (ContainerManagerImpl) this.context.getContainerManager(); ContainersMonitor containersMonitor = containerManager.getContainersMonitor(); return containersMonitor.getContainersUtilization(); }
/** * Get the aggregated utilization of the containers in this node. * @return Resource utilization of all the containers. */ private ResourceUtilization getContainersUtilization() { ContainersMonitor containersMonitor = this.context.getContainerManager().getContainersMonitor(); return containersMonitor.getContainersUtilization(); }
protected void waitForNMToReceiveNMTokenKey( NMTokenSecretManagerInNM nmTokenSecretManagerNM, NodeManager nm) throws InterruptedException { int attempt = 60; ContainerManagerImpl cm = ((ContainerManagerImpl) nm.getNMContext().getContainerManager()); while ((cm.getBlockNewContainerRequestsStatus() || nmTokenSecretManagerNM .getNodeId() == null) && attempt-- > 0) { Thread.sleep(2000); } }
((ContainerManagerImpl) this.context.getContainerManager()) .setBlockNewContainerRequests(false);
+ " with total resource of " + this.totalResource); LOG.info("Notifying ContainerManager to unblock new container-requests"); ((ContainerManagerImpl) this.context.getContainerManager()) .setBlockNewContainerRequests(false);
+ " with total resource of " + this.totalResource); LOG.info("Notifying ContainerManager to unblock new container-requests"); ((ContainerManagerImpl) this.context.getContainerManager()) .setBlockNewContainerRequests(false);
((NMContext) context).setSystemCrendentialsForApps( parseCredentials(systemCredentials)); context.getContainerManager().handleCredentialUpdate(); response.getContainerQueuingLimit(); if (queuingLimit != null) { context.getContainerManager().updateQueuingLimit(queuingLimit);