Package org.apache.helix.PropertyKey

Examples of org.apache.helix.PropertyKey.Builder.currentState()


          continue;
        }
        StateModelDefinition stateModel =
            _helixAccessor.getProperty(keyBuilder.stateModelDef(stateModelDefRef));

        String curStatePath = keyBuilder.currentState(_instanceName, _sessionId, lastCurState.getResourceName()).getPath();
        _helixAccessor.getBaseDataAccessor().update(curStatePath,
           new CurStateCarryOverUpdater(_sessionId, stateModel.getInitialState(), lastCurState), AccessOption.PERSISTENT);
      }
    }
   
View Full Code Here


      }
    }
    try
    {
      // Update the ZK current state of the node
      PropertyKey key = keyBuilder.currentState(instanceName,
                              sessionId,
                              resource,
                              bucketizer.getBucketName(partitionKey));
      if (_message.getAttribute(Attributes.PARENT_MSG_ID) == null)
      {
View Full Code Here

 
        // if transit from ERROR state, disable the partition
        if (_message.getFromState().equalsIgnoreCase(HelixDefinedState.ERROR.toString())) {
          disablePartition();
        }
        accessor.updateProperty(keyBuilder.currentState(instanceName,
                                                        _message.getTgtSessionId(),
                                                        resourceName),
                                currentStateDelta);
    }
    } finally {
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.