Package com.linkedin.helix.model.IdealState

Examples of com.linkedin.helix.model.IdealState.IdealStateModeProperty


    if (!ZKUtil.isClusterSetup(clusterName, _zkClient))
    {
      throw new HelixException("cluster " + clusterName + " is not setup yet");
    }

    IdealStateModeProperty mode = IdealStateModeProperty.AUTO;
    try
    {
      mode = IdealStateModeProperty.valueOf(idealStateMode);
    }
    catch (Exception e)
    {
      logger.error("", e);
    }
    IdealState idealState = new IdealState(resourceName);
    idealState.setNumPartitions(partitions);
    idealState.setStateModelDefRef(stateModelRef);
    idealState.setIdealStateMode(mode.toString());
    idealState.setReplicas("" + 0);
    idealState.setStateModelFactoryName(HelixConstants.DEFAULT_STATE_MODEL_FACTORY);

    if (bucketSize > 0)
    {
View Full Code Here


    final String zkAddr = args[0];
    final String clusterName = args[1];
    final String idealStateModeStr = args[2].toUpperCase();
    String idealStateJsonFile = null;
    IdealStateModeProperty idealStateMode =
        IdealStateModeProperty.valueOf(idealStateModeStr);
    if (idealStateMode == IdealStateModeProperty.CUSTOMIZED)
    {
      if (args.length < 4)
      {
View Full Code Here

    final String zkAddr = args[0];
    final String clusterName = args[1];
    final String idealStateModeStr = args[2].toUpperCase();
    String idealStateJsonFile = null;
    IdealStateModeProperty idealStateMode =
        IdealStateModeProperty.valueOf(idealStateModeStr);
    if (idealStateMode == IdealStateModeProperty.CUSTOMIZED)
    {
      if (args.length < 4)
      {
View Full Code Here

    if (!ZKUtil.isClusterSetup(clusterName, _zkClient))
    {
      throw new HelixException("cluster " + clusterName + " is not setup yet");
    }

    IdealStateModeProperty mode = IdealStateModeProperty.AUTO;
    try
    {
      mode = IdealStateModeProperty.valueOf(idealStateMode);
    }
    catch (Exception e)
    {
      logger.error("", e);
    }
    IdealState idealState = new IdealState(resourceName);
    idealState.setNumPartitions(partitions);
    idealState.setStateModelDefRef(stateModelRef);
    idealState.setIdealStateMode(mode.toString());
    idealState.setReplicas("" + 0);
    idealState.setStateModelFactoryName(HelixConstants.DEFAULT_STATE_MODEL_FACTORY);

    if (bucketSize > 0)
    {
View Full Code Here

TOP

Related Classes of com.linkedin.helix.model.IdealState.IdealStateModeProperty

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.