Package org.apache.helix.api.config

Examples of org.apache.helix.api.config.ClusterConfig$Builder


    private Map<String, Map<String, String>> getMapping(final Map<String, List<String>> listResult) {
      final Map<String, Map<String, String>> mapResult = new HashMap<String, Map<String, String>>();
      for (String partition : _partitions) {
        Map<String, String> rawCurStateMap = _currentMapping.get(partition);
        ClusterConfig cluster =
            new ClusterConfig.Builder(ClusterId.from("cluster")).addStateModelDefinition(
                _stateModelDef).build();
        Set<ParticipantId> liveParticipantSet = Sets.newHashSet();
        for (String node : _liveNodes) {
          liveParticipantSet.add(ParticipantId.from(node));
View Full Code Here


      for (State state : _stateModelDef.getTypedStatesPriorityList()) {
        clusterConfigBuilder.addStateUpperBoundConstraint(Scope.cluster(clusterId),
            _stateModelDef.getStateModelDefId(), state,
            _stateModelDef.getNumParticipantsPerState(state));
      }
      ClusterConfig clusterConfig = clusterConfigBuilder.build();
      for (String partition : _partitions) {
        PartitionId partitionId = PartitionId.from(partition);
        Set<ParticipantId> disabledParticipantsForPartition = Collections.emptySet();
        Set<PartitionId> disabledPartitionIdSet = Collections.emptySet();
        Set<String> tags = Collections.emptySet();
View Full Code Here

TOP

Related Classes of org.apache.helix.api.config.ClusterConfig$Builder

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.