Package org.apache.helix.controller.provisioner

Examples of org.apache.helix.controller.provisioner.ContainerSpec


      }
    }

    // set up the container config if it exists
    ContainerConfig containerConfig = null;
    ContainerSpec containerSpec = instanceConfig.getContainerSpec();
    ContainerState containerState = instanceConfig.getContainerState();
    ContainerId containerId = instanceConfig.getContainerId();
    if (containerSpec != null || containerState != null || containerId != null) {
      containerConfig = new ContainerConfig(containerId, containerSpec, containerState);
    }
View Full Code Here


        // Participant participant = excessHaltedContainers.get(participantId);
        // containersToStart.add(participant);
        // excessHaltedContainers.remove(participantId); // don't release this container
      } else if (!existingContainersIdSet.contains(participantId)) {
        // Unallocated containers must be allocated
        ContainerSpec containerSpec = new ContainerSpec(participantId);
        int mem = 4096;
        if (_resourceConfig.getUserConfig() != null) {
          mem = _resourceConfig.getUserConfig().getIntField("memory", mem);
        }
        containerSpec.setMemory(mem);
        containersToAcquire.add(containerSpec);
      }
    }

    // Add all the containers that should be stopped because they fall outside the target range
View Full Code Here

      TargetProviderResponse response = new TargetProviderResponse();
      // ask for one container at a time
      List<ContainerSpec> containersToAcquire = Lists.newArrayList();
      boolean asked = false;
      if (_askCount < MAX_PARTICIPANTS) {
        containersToAcquire.add(new ContainerSpec(ParticipantId.from("container" + _askCount)));
        asked = true;
      }
      List<Participant> containersToStart = Lists.newArrayList();
      List<Participant> containersToStop = Lists.newArrayList();
      List<Participant> containersToRelease = Lists.newArrayList();
View Full Code Here

TOP

Related Classes of org.apache.helix.controller.provisioner.ContainerSpec

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.