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;
}
Aggregations