Package com.linkedin.helix.PropertyKey

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


          {
            continue;
          }

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

            {
              continue;
            }

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

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

                                                                        resourceGroupName));

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

    // errors
    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));

   }
 
  // TODO: throw exception in reset()
}
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.