Package com.alibaba.wasp.executor.EventHandler

Examples of com.alibaba.wasp.executor.EventHandler.EventType


    if (bytes == null) {
      // If it came back null, node does not exist.
      throw KeeperException.create(Code.NONODE);
    }
    EntityGroupTransaction rt = getEntityGroupTransition(bytes);
    EventType et = rt.getEventType();
    if (!et.equals(expectedState)) {
      LOG.warn(zkw.prefix("Attempting to delete unassigned node "
          + entityGroupName
          + " in " + expectedState + " state but node is in " + et + " state"));
      return false;
    }
View Full Code Here


          + " not the expected version " + expectedVersion));
      return -1;
    }

    // Verify it is in expected state
    EventType et = rt.getEventType();
    if (!et.equals(beginState)) {
      LOG.warn(zkw.prefix("Attempt to transition the " + "unassigned node for "
          + encoded + " from " + beginState + " to " + endState + " failed, "
          + "the node existed but was in the state " + et
          + " set by the server " + serverName));
      return -1;
View Full Code Here

   */
  void processEntityGroupsInTransition(
      final EntityGroupTransaction egTransition,
      final EntityGroupInfo entityGroupInfo, int expectedVersion)
      throws KeeperException {
    EventType et = egTransition.getEventType();
    // Get ServerName. Could not be null.
    ServerName sn = egTransition.getServerName();
    String encodedEntityGroupName = entityGroupInfo.getEncodedName();
    LOG.info("Processing entityGroup "
        + entityGroupInfo.getEntityGroupNameAsString() + " in state " + et);
View Full Code Here

      if (data == null) {
        LOG.warn("Data is null, node " + node + " no longer exists");
        return;
      }
      EntityGroupTransaction rt = EntityGroupTransaction.parseFrom(data);
      EventType et = rt.getEventType();
      if (et == EventType.FSERVER_ZK_ENTITYGROUP_OPENED) {
        LOG.debug("EntityGroup has transitioned to OPENED, allowing "
            + "watched event handlers to process");
        return;
      } else if (et != EventType.FSERVER_ZK_ENTITYGROUP_OPENING
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.executor.EventHandler.EventType

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.