org.ovirt.engine.api.model.Quota.getStorageSoftLimitPct()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中org.ovirt.engine.api.model.Quota.getStorageSoftLimitPct方法的一些代码示例,展示了Quota.getStorageSoftLimitPct的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Quota.getStorageSoftLimitPct方法的具体详情如下:
包路径:org.ovirt.engine.api.model.Quota
类名称:Quota
方法名:getStorageSoftLimitPct

Quota.getStorageSoftLimitPct介绍

[英]Gets the value of the storageSoftLimitPct property.
[中]获取storageSoftLimitPct属性的值。

代码示例

代码示例来源:origin: oVirt/ovirt-engine

to.setStorageSoftLimitPct(from.getStorageSoftLimitPct());

代码示例来源:origin: oVirt/ovirt-engine

@Mapping(from = Quota.class, to = org.ovirt.engine.core.common.businessentities.Quota.class)
public static org.ovirt.engine.core.common.businessentities.Quota map(Quota model, org.ovirt.engine.core.common.businessentities.Quota template) {
  org.ovirt.engine.core.common.businessentities.Quota entity = (template==null) ? new org.ovirt.engine.core.common.businessentities.Quota() : template;
  if (model.isSetId()) {
    entity.setId(GuidUtils.asGuid(model.getId()));
  }
  if (model.isSetName()) {
    entity.setQuotaName(model.getName());
  }
  if (model.isSetDescription()) {
    entity.setDescription(model.getDescription());
  }
  if (model.isSetDataCenter()) {
    entity.setStoragePoolId(GuidUtils.asGuid(model.getDataCenter().getId()));
  }
  if (model.isSetClusterHardLimitPct()) {
    entity.setGraceClusterPercentage(model.getClusterHardLimitPct());
  }
  if (model.isSetStorageHardLimitPct()) {
    entity.setGraceStoragePercentage(model.getStorageHardLimitPct());
  }
  if (model.isSetClusterSoftLimitPct()) {
    entity.setThresholdClusterPercentage(model.getClusterSoftLimitPct());
  }
  if (model.isSetStorageSoftLimitPct()) {
    entity.setThresholdStoragePercentage(model.getStorageSoftLimitPct());
  }
  return entity;
}

相关文章