Package com.alibaba.wasp.master.handler

Examples of com.alibaba.wasp.master.handler.ClosedEntityGroupHandler


   * @param oldData
   */
  private void addToEGITandCallClose(final EntityGroupInfo egInfo,
      final EntityGroupState.State state, final EntityGroupTransaction oldData) {
    entityGroupStates.updateEntityGroupState(oldData, state);
    new ClosedEntityGroupHandler(this.server, this, egInfo).process();
  }
View Full Code Here


        // what follows will fail because not in expected state.
        entityGroupState = entityGroupStates.updateEntityGroupState(
            egTransition, EntityGroupState.State.CLOSED);
        if (entityGroupState != null) {
          removeClosedEntityGroup(entityGroupState.getEntityGroup());
          this.executorService.submit(new ClosedEntityGroupHandler(server,
              this, entityGroupState.getEntityGroup()));
        }
        break;

      case FSERVER_ZK_ENTITYGROUP_FAILED_OPEN:
        if (entityGroupState != null
            && !entityGroupState.isPendingOpenOrOpeningOnServer(sn)) {
          LOG.warn("Received FAILED_OPEN for entityGroup " + encodedName
              + " from server " + sn + " but entityGroup was in the state "
              + entityGroupState
              + " and not in expected PENDING_OPEN or OPENING states,"
              + " or not on the expected server");
          return;
        }
        // Handle this the same as if it were opened and then closed.
        entityGroupState = entityGroupStates.updateEntityGroupState(
            egTransition, EntityGroupState.State.CLOSED);
        // When there are more than one entityGroup server a new FSERVER is
        // selected as the
        // destination and the same is updated in the entityGroupplan.
        // (HBASE-5546)
        if (entityGroupState != null) {
          getEntityGroupPlan(entityGroupState.getEntityGroup(), sn, true);
          this.executorService.submit(new ClosedEntityGroupHandler(server,
              this, entityGroupState.getEntityGroup()));
        }
        break;

      case FSERVER_ZK_ENTITYGROUP_OPENING:
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.master.handler.ClosedEntityGroupHandler

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.