Package com.cloud.org.Grouping

Examples of com.cloud.org.Grouping.AllocationState


    // TO DO - Make it more granular and have better conversion into
    // capacity type

    if (host.getType() == Type.Routing && host.getClusterId() != null) {
      AllocationState capacityState = _configMgr
          .findClusterAllocationState(ApiDBUtils.findClusterById(host
              .getClusterId()));
      if (capacityState == AllocationState.Enabled
          && nextState != ResourceState.Enabled) {
                capacityState = AllocationState.Disabled;
            }
      _capacityDao.updateCapacityState(null, null, null, host.getId(),
          capacityState.toString());
        }
    return _hostDao.updateResourceState(currentState, event, nextState,
        host);
    }
View Full Code Here

TOP

Related Classes of com.cloud.org.Grouping.AllocationState

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.