use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getClusterFeaturesByClusterId.
public void getClusterFeaturesByClusterId(AsyncQuery<Set<SupportedAdditionalClusterFeature>> aQuery, Guid clusterId) {
aQuery.converterCallback = new SetConverter<>();
Frontend.getInstance().runQuery(QueryType.GetClusterFeaturesByClusterId, new IdQueryParameters(clusterId), aQuery);
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getGlusterVolumeGeoRepStatusForMasterVolume.
public void getGlusterVolumeGeoRepStatusForMasterVolume(AsyncQuery<List<GlusterGeoRepSession>> aQuery, Guid masterVolumeId) {
aQuery.converterCallback = new ListConverter<>();
Frontend.getInstance().runQuery(QueryType.GetGlusterVolumeGeoRepSessions, new IdQueryParameters(masterVolumeId), aQuery);
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class HostSetupNetworksModel method queryFreeBonds.
private void queryFreeBonds() {
// query for all unused, existing bonds on the host
VDS vds = getEntity();
Frontend.getInstance().runQuery(QueryType.GetVdsFreeBondsByVdsId, new IdQueryParameters(vds.getId()), new AsyncQuery<QueryReturnValue>(returnValue -> {
allBonds = returnValue.getReturnValue();
queryTLVInformation();
initNetworkModels();
initNicModels();
stopProgress();
}));
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class HostSetupNetworksModel method queryInterfaces.
private void queryInterfaces() {
VDS vds = getEntity();
IdQueryParameters params = new IdQueryParameters(vds.getId());
params.setRefresh(false);
// query for interfaces
Frontend.getInstance().runQuery(QueryType.GetVdsInterfacesByVdsId, params, new AsyncQuery<>((QueryReturnValue returnValue) -> {
allExistingNics = returnValue.getReturnValue();
existingVlanDevicesByVlanId = mapVlanDevicesByVlanId();
initCreateOrUpdateBondParameters();
initNicLabelsParameters();
// chain the network attachments query
queryNetworkAttachments();
}));
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class HostSetupNetworksModel method queryNetworkAttachments.
private void queryNetworkAttachments() {
VDS vds = getEntity();
IdQueryParameters params = new IdQueryParameters(vds.getId());
params.setRefresh(false);
// query for network attachments
Frontend.getInstance().runQuery(QueryType.GetNetworkAttachmentsByHostId, params, new AsyncQuery<>((QueryReturnValue returnValue) -> {
hostSetupNetworksParametersData.getNetworkAttachments().addAll((List<NetworkAttachment>) returnValue.getReturnValue());
initNetworkIdToExistingAttachmentMap();
// chain the vfsConfig query
queryVfsConfig();
}));
}
Aggregations