org.ovirt.engine.core.common.businessentities.Quota.getStoragePoolName()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(100)

本文整理了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

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);

相关文章