Search in sources :

Example 16 with HypervisorCapabilitiesVO

use of com.cloud.hypervisor.HypervisorCapabilitiesVO in project cloudstack by apache.

the class HypervisorCapabilitiesDaoImpl method getMaxGuestsLimit.

@Override
public Long getMaxGuestsLimit(HypervisorType hypervisorType, String hypervisorVersion) {
    Long defaultLimit = new Long(50);
    HypervisorCapabilitiesVO result = getCapabilities(hypervisorType, hypervisorVersion);
    if (result == null) {
        return defaultLimit;
    }
    Long limit = result.getMaxGuestsLimit();
    if (limit == null) {
        return defaultLimit;
    }
    return limit;
}
Also used : HypervisorCapabilitiesVO(com.cloud.hypervisor.HypervisorCapabilitiesVO)

Aggregations

HypervisorCapabilitiesVO (com.cloud.hypervisor.HypervisorCapabilitiesVO)16 HostVO (com.cloud.host.HostVO)6 HypervisorType (com.cloud.hypervisor.Hypervisor.HypervisorType)6 Pair (com.cloud.utils.Pair)6 InvalidParameterValueException (com.cloud.utils.exception.InvalidParameterValueException)6 ArrayList (java.util.ArrayList)6 ExcludeList (com.cloud.deploy.DeploymentPlanner.ExcludeList)5 ActionEvent (com.cloud.event.ActionEvent)5 InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)5 Account (com.cloud.user.Account)5 SSHKeyPair (com.cloud.user.SSHKeyPair)5 VMInstanceVO (com.cloud.vm.VMInstanceVO)5 PermissionDeniedException (com.cloud.exception.PermissionDeniedException)4 VolumeVO (com.cloud.storage.VolumeVO)4 DB (com.cloud.utils.db.DB)4 List (java.util.List)4 Host (com.cloud.host.Host)3 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)3 DiskProfile (com.cloud.vm.DiskProfile)3 DataCenterDeployment (com.cloud.deploy.DataCenterDeployment)2