本文整理了Java中org.ovirt.engine.core.common.businessentities.network.Network.getQosId()
方法的一些代码示例,展示了Network.getQosId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getQosId()
方法的具体详情如下:
包路径:org.ovirt.engine.core.common.businessentities.network.Network
类名称:Network
方法名:getQosId
[英]Gets the ID of the QoS entity configured on this network.
[中]获取在此网络上配置的QoS实体的ID。
代码示例来源:origin: oVirt/ovirt-engine
/**
* Check whether the network attachment has any QoS configured on it, whether via its network or overridden.
*
* @param networkAttachment
* The network interface.
* @param network
* The network attached to the interface.
* @return true iff any QoS is applied to the interface.
*/
public static boolean qosConfiguredOnInterface(NetworkAttachment networkAttachment, Network network) {
if (networkAttachment != null && networkAttachment.isQosOverridden()) {
return networkAttachment.getHostNetworkQos() != null && !networkAttachment.getHostNetworkQos().isEmpty();
} else {
return network != null && network.getQosId() != null;
}
}
代码示例来源:origin: oVirt/ovirt-engine
public void syncWithBackend() {
final StoragePool dc = getSelectedDc();
if (dc == null) {
return;
}
AsyncDataProvider.getInstance().getAllHostNetworkQos(dc.getId(), new AsyncQuery<>(qos -> {
getQos().setItems(qos);
getQos().setSelectedItem(qos.stream()
.filter(new Linq.IdPredicate<>(getNetwork().getQosId()))
.findFirst()
.orElse(EMPTY_HOST_NETWORK_QOS));
}));
updateDcLabels();
onExportChanged();
getProfiles().updateDcId(dc.getId());
initPhysicalNetworkList();
}
代码示例来源:origin: oVirt/ovirt-engine
logicalNetworkModel.getNetworkAttachment();
HostNetworkQos networkQos = qosById.get(network.getQosId());
DnsResolverConfiguration reportedDnsResolverConfiguration = getEntity().getReportedDnsResolverConfiguration();
if (logicalNetworkModel.isManagement()) {
代码示例来源:origin: oVirt/ovirt-engine
@Override
public String toString() {
return ToStringBuilder.forInstance(this)
.append("id", getId())
.append("description", getDescription())
.append("comment", getComment())
.append("vdsmName", getVdsmName())
.append("subnet", getSubnet())
.append("gateway", getGateway())
.append("type", getType())
.append("vlanId", getVlanId())
.append("stp", getStp())
.append("dataCenterId", getDataCenterId())
.append("mtu", getMtu())
.append("vmNetwork", isVmNetwork())
.append("cluster", getCluster())
.append("providedBy", getProvidedBy())
.append("label", getLabel())
.append("qosId", getQosId())
.append("dnsResolverConfiguration", dnsResolverConfiguration)
.build();
}
代码示例来源:origin: oVirt/ovirt-engine
Guid entityQosId = entity.getQosId();
if (entityQosId != null) {
Qos qos = new Qos();
代码示例来源:origin: oVirt/ovirt-engine
@Override
protected MapSqlParameterSource createFullParametersMapper(Network network) {
return getCustomMapSqlParameterSource()
.addValue("addr", network.getAddr())
.addValue("description", network.getDescription())
.addValue("free_text_comment", network.getComment())
.addValue("id", network.getId())
.addValue("name", network.getName())
.addValue("vdsm_name", network.getVdsmName())
.addValue("subnet", network.getSubnet())
.addValue("gateway", network.getGateway())
.addValue("type", network.getType())
.addValue("vlan_id", network.getVlanId())
.addValue("stp", network.getStp())
.addValue("storage_pool_id", network.getDataCenterId())
.addValue("mtu", network.getMtu())
.addValue("vm_network", network.isVmNetwork())
.addValue("provider_network_provider_id",
network.getProvidedBy() == null ? null : network.getProvidedBy().getProviderId())
.addValue("provider_network_external_id",
network.getProvidedBy() == null ? null : network.getProvidedBy().getExternalId())
.addValue("provider_physical_network_id",
network.getProvidedBy() == null ? null : network.getProvidedBy().getPhysicalNetworkId())
.addValue("qos_id", network.getQosId())
.addValue("label", network.getLabel())
.addValue("dns_resolver_configuration_id", getDnsResolverConfigurationId(network));
}
内容来源于网络,如有侵权,请联系作者删除!