Package org.apache.helix.provisioning

Examples of org.apache.helix.provisioning.ContainerReleaseResponse


  public ListenableFuture<ContainerReleaseResponse> releaseContainer(Container container) {
    LOG.info("Requesting container RELEASE:" + container);
    SettableFuture<ContainerReleaseResponse> future = SettableFuture.create();
    synchronized (allocatedContainerSet) {
      if (!allocatedContainerSet.contains(container.getId())) {
        future.set(new ContainerReleaseResponse());
      } else {
        containerReleaseMap.put(container.getId(), future);
        amRMClient.releaseAssignedContainer(container.getId());
      }
    }
View Full Code Here


        } else {
          SettableFuture<ContainerReleaseResponse> releaseResponseFuture =
              _genericApplicationMaster.containerReleaseMap
                  .remove(containerStatus.getContainerId());
          if (releaseResponseFuture != null) {
            ContainerReleaseResponse value = new ContainerReleaseResponse();
            releaseResponseFuture.set(value);
          }
        }
      }
      // increment counters for completed/failed containers
View Full Code Here

TOP

Related Classes of org.apache.helix.provisioning.ContainerReleaseResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.