Examples of stateTransitionStatus()


Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

    ZKHelixDataAccessor accessor =
        new ZKHelixDataAccessor(clusterName, new ZkBaseDataAccessor<ZNRecord>(_gZkClient));
    Builder keyBuilder = accessor.keyBuilder();

    LiveInstance liveInstance = accessor.getProperty(keyBuilder.liveInstance(instance));
    accessor.removeProperty(keyBuilder.stateTransitionStatus(instance,
                                                             liveInstance.getSessionId(),
                                                             resource,
                                                             partition));

  }
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

    Builder keyBuilder = new PropertyKey.Builder(clusterName);
    String message =
        ClusterRepresentationUtil.getInstancePropertiesAsString(zkClient,
                                                                  clusterName,
                                                                  keyBuilder.stateTransitionStatus(instanceName,
                                                                                                   instanceSessionId,
                                                                                                   resourceGroup),
                                                                  // instanceSessionId
                                                                  // + "__"
                                                                  // + resourceGroup,
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

      idealState.getRecord().setSimpleField(i + "", bufStr);
    }
    boolean succeed = accessor.setProperty(keyBuilder.idealStates("TestDB0"), idealState);
    Assert.assertFalse(succeed);
    HelixProperty property =
        accessor.getProperty(keyBuilder.stateTransitionStatus("localhost_12918",
                                                              "session_1",
                                                              "partition_1"));
    Assert.assertNull(property);

    // legal sized data gets written to zk
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

      if (_startCMResultMap.get(instanceName) != null)
      {
        HelixDataAccessor accessor = _startCMResultMap.get(instanceName)._manager.getHelixDataAccessor();
        Builder kb = accessor.keyBuilder();
        List<StatusUpdate> statusUpdates = accessor.getChildValues(
            kb.stateTransitionStatus(instanceName, _startCMResultMap.get(instanceName)._manager.getSessionId(),
                TEST_DB));
        Assert.assertTrue(statusUpdates.size() > 0);
        for(StatusUpdate update : statusUpdates)
        {
          Assert.assertTrue(update.getRecord().getSimpleField(ZkPropertyTransferClient.USE_PROPERTYTRANSFER).equals("true"));
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

      }
      else
      {
       
        PropertyKey propertyKey =
            keyBuilder.stateTransitionStatus(instanceName,
                                             sessionId,
                                             statusUpdateSubPath,
                                             statusUpdateKey);

        ZNRecord statusUpdateRecord = createMessageLogRecord(message);
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

    }
    else
    {
     
      PropertyKey propertyKey =
          keyBuilder.stateTransitionStatus(instanceName,
                                           sessionId,
                                           statusUpdateSubPath,
                                           statusUpdateKey);
      // For now write participant StatusUpdates to log4j.
      // we are using restlet as another data channel to report to controller.
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

          {
            continue;
          }

          List<String> resourceGroups =
              accessor.getChildNames(keyBuilder.stateTransitionStatus(instanceName,
                                                                      session));
          for (String resourceGroupName : resourceGroups)
          {
            if (!resourceGroupName.equals(resourceGroup))
            {
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

            {
              continue;
            }

            List<String> partitionStrings =
                accessor.getChildNames(keyBuilder.stateTransitionStatus(instanceName,
                                                                        session,
                                                                        resourceGroupName));

            for (String partitionString : partitionStrings)
            {
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

                                                                        resourceGroupName));

            for (String partitionString : partitionStrings)
            {
              ZNRecord partitionRecord =
                  accessor.getProperty(keyBuilder.stateTransitionStatus(instanceName,
                                                                        session,
                                                                        resourceGroupName,
                                                                        partitionString))
                          .getRecord();
              if (!partitionString.equals(partition))
View Full Code Here

Examples of com.linkedin.helix.PropertyKey.Builder.stateTransitionStatus()

      }
      else
      {

        PropertyKey propertyKey =
            keyBuilder.stateTransitionStatus(instanceName,
                                             sessionId,
                                             statusUpdateSubPath,
                                             statusUpdateKey);

        ZNRecord statusUpdateRecord = createMessageLogRecord(message);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.