use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockVCPUQuotaGlobalOverThreshold.
/**
* Call by Guid: {@literal VCPU_QUOTA_GLOBAL_OVER_THRESHOLD}
*/
private Quota mockVCPUQuotaGlobalOverThreshold() {
Quota quota = mockBasicQuota();
quota.setId(VCPU_QUOTA_GLOBAL_OVER_THRESHOLD);
quota.setGlobalQuotaCluster(getQuotaCluster(100, 92, UNLIMITED_MEM, 0));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockVCPUQuotaSpecificInGrace.
/**
* Call by Guid: {@literal VCPU_QUOTA_SPECIFIC_IN_GRACE}
*/
private Quota mockVCPUQuotaSpecificInGrace() {
Quota quota = mockBasicQuota();
quota.setId(VCPU_QUOTA_SPECIFIC_IN_GRACE);
quota.setQuotaClusters(getQuotaClusters(100, 105, UNLIMITED_MEM, 0));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockMemQuotaGlobalOverThreshold.
/**
* Call by Guid: {@literal MEM_QUOTA_GLOBAL_OVER_THRESHOLD}
*/
private Quota mockMemQuotaGlobalOverThreshold() {
Quota quota = mockBasicQuota();
quota.setId(MEM_QUOTA_GLOBAL_OVER_THRESHOLD);
quota.setGlobalQuotaCluster(getQuotaCluster(UNLIMITED_VCPU, 0, 2048, 1900));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockVCPUQuotaSpecificOverGrace.
/**
* Call by Guid: {@literal VCPU_QUOTA_SPECIFIC_OVER_GRACE}
*/
private Quota mockVCPUQuotaSpecificOverGrace() {
Quota quota = mockBasicQuota();
quota.setId(VCPU_QUOTA_SPECIFIC_OVER_GRACE);
quota.setQuotaClusters(getQuotaClusters(100, 134, UNLIMITED_MEM, 0));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockStorageQuotaGlobalInGrace.
/**
* Call by Guid: {@literal STORAGE_QUOTA_GLOBAL_IN_GRACE}
*/
private Quota mockStorageQuotaGlobalInGrace() {
Quota quota = mockBasicQuota();
quota.setId(STORAGE_QUOTA_GLOBAL_IN_GRACE);
quota.setGlobalQuotaStorage(getQuotaStorage(100, 104));
return quota;
}
Aggregations