Package org.apache.helix.api.id

Examples of org.apache.helix.api.id.ClusterId


    }

    private Map<String, Map<String, String>> getMapping(final Map<String, List<String>> listResult) {
      final Map<PartitionId, Map<ParticipantId, State>> mapResult =
          new HashMap<PartitionId, Map<ParticipantId, State>>();
      ClusterId clusterId = ClusterId.from("clusterId");
      ClusterConfig.Builder clusterConfigBuilder =
          new ClusterConfig.Builder(clusterId).addStateModelDefinition(_stateModelDef);
      for (State state : _stateModelDef.getTypedStatesPriorityList()) {
        clusterConfigBuilder.addStateUpperBoundConstraint(Scope.cluster(clusterId),
            _stateModelDef.getStateModelDefId(), state,
View Full Code Here


    HelixManager manager = event.getAttribute("helixmanager");
    if (manager == null) {
      throw new StageException("HelixManager attribute value is null");
    }
    HelixDataAccessor accessor = manager.getHelixDataAccessor();
    ClusterId clusterId = ClusterId.from(manager.getClusterName());
    ClusterAccessor clusterAccessor = new ClusterAccessor(clusterId, accessor);

    Cluster cluster = clusterAccessor.readCluster();

    ClusterStatusMonitor clusterStatusMonitor =
View Full Code Here

        || constraintAttributesMap == null) {
      System.err
          .println("fail to set constraint. missing clusterName|constraintType|constraintId|constraintAttributesMap");
      return;
    }
    ClusterId clusterId = ClusterId.from(clusterName);
    ClusterAccessor accessor = clusterAccessor(clusterName);
    Map<String, String> constraintAttributes =
        HelixUtil.parseCsvFormatedKeyValuePairs(constraintAttributesMap);
    ConstraintItem item = new ConstraintItem(constraintAttributes);
    ClusterConfig.Delta delta =
View Full Code Here

TOP

Related Classes of org.apache.helix.api.id.ClusterId

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.