本文整理了Java中org.ovirt.engine.core.common.businessentities.Quota.getStoragePoolName
方法的一些代码示例,展示了Quota.getStoragePoolName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Quota.getStoragePoolName
方法的具体详情如下:
包路径:org.ovirt.engine.core.common.businessentities.Quota
类名称:Quota
方法名:getStoragePoolName
暂无
代码示例来源:origin: oVirt/ovirt-engine
@Override
public SafeHtml getName(Quota item) {
SafeHtmlBuilder builder = new SafeHtmlBuilder();
builder.append(super.getName(item));
builder.appendEscaped(" ("); // $NON-NLS-1$
builder.appendEscaped(item.getStoragePoolName());
builder.appendEscaped(")"); // $NON-NLS-1$
return builder.toSafeHtml();
}
代码示例来源:origin: oVirt/ovirt-engine
@Test
public void testGeneralQuotaLimitations() {
// Set new Quota definition.
Quota quota = createGeneralQuota();
setQuotaGlobalLimitations(quota);
quota.setQuotaClusters(getQuotaCluster(null));
quota.setQuotaStorages(getQuotaStorage(null));
dao.save(quota);
Quota quotaEntity = dao.getById(quota.getId());
assertNotNull(quotaEntity);
assertEquals(quota, quotaEntity);
assertEquals("rhel6.NFS", quotaEntity.getStoragePoolName());
assertEquals(QuotaEnforcementTypeEnum.DISABLED, quotaEntity.getQuotaEnforcementType());
}
代码示例来源:origin: oVirt/ovirt-engine
StoragePool dataCenter = new StoragePool();
dataCenter.setId(quota.getStoragePoolId());
dataCenter.setName(quota.getStoragePoolName());
dataCenterList.add(dataCenter);
qModel.getDataCenter().setItems(dataCenterList);
内容来源于网络,如有侵权,请联系作者删除!