Package com.alibaba.wasp

Examples of com.alibaba.wasp.UnknownEntityGroupException


    }
    EntityGroupState entityGroupState = assignmentManager
        .getEntityGroupStates().getEntityGroupState(
            Bytes.toString(encodedEntityGroupName));
    if (entityGroupState == null) {
      throw new ServiceException(new UnknownEntityGroupException(
          Bytes.toStringBinary(encodedEntityGroupName)));
    }

    EntityGroupInfo egInfo = entityGroupState.getEntityGroup();
    ServerName dest;
View Full Code Here


            + EntityGroupSpecifierType.ENTITYGROUP_NAME + " actual: " + type);
      }
      EntityGroupInfo entityGroupInfo = assignmentManager
          .getEntityGroupStates().getEntityGroupInfo(entityGroupName);
      if (entityGroupInfo == null)
        throw new UnknownEntityGroupException(Bytes.toString(entityGroupName));
      assignmentManager.assign(entityGroupInfo, true, true);
      return aegr;
    } catch (IOException ioe) {
      throw new ServiceException(ioe);
    }
View Full Code Here

            + EntityGroupSpecifierType.ENTITYGROUP_NAME + " actual: " + type);
      }
      Pair<EntityGroupInfo, ServerName> pair = FMetaReader
          .getEntityGroupAndLocation(this.conf, entityGroupName);
      if (pair == null)
        throw new UnknownEntityGroupException(Bytes.toString(entityGroupName));
      EntityGroupInfo egInfo = pair.getFirst();
      if (force) {
        this.assignmentManager.entityGroupOffline(egInfo);
        assignEntityGroup(egInfo);
      } else {
View Full Code Here

    try {
      Pair<EntityGroupInfo, ServerName> pair = FMetaReader
          .getEntityGroupAndLocation(this.conf, entityGroupName);
      if (pair == null)
        throw new UnknownEntityGroupException(
            Bytes.toStringBinary(entityGroupName));
      EntityGroupInfo egInfo = pair.getFirst();
      this.assignmentManager.entityGroupOffline(egInfo);
    } catch (IOException ioe) {
      throw new ServiceException(ioe);
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.UnknownEntityGroupException

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.