use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getIsGlusterVolumeSnapshotCliScheduleEnabled.
public void getIsGlusterVolumeSnapshotCliScheduleEnabled(AsyncQuery<Boolean> aQuery, Guid clusterId) {
aQuery.converterCallback = new CastingConverter<>();
Frontend.getInstance().runQuery(QueryType.GetGlusterVolumeSnapshotCliScheduleFlag, new IdQueryParameters(clusterId), aQuery);
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getEmulatedMachinesByClusterID.
public void getEmulatedMachinesByClusterID(AsyncQuery<Set<String>> aQuery, Guid clusterId) {
aQuery.converterCallback = source -> {
if (source != null) {
List<VDS> vdsList = (List<VDS>) source;
Set<String> emulatedMachineList = new HashSet<>();
for (VDS host : vdsList) {
String hostSupportedMachines = host.getSupportedEmulatedMachines();
if (!StringHelper.isNullOrEmpty(hostSupportedMachines)) {
// $NON-NLS-1$
emulatedMachineList.addAll(Arrays.asList(hostSupportedMachines.split(",")));
}
}
return emulatedMachineList;
}
return null;
};
Frontend.getInstance().runQuery(QueryType.GetHostsByClusterId, new IdQueryParameters(clusterId), aQuery);
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getHostArchitecture.
public void getHostArchitecture(AsyncQuery<ArchitectureType> aQuery, Guid id) {
aQuery.converterCallback = new CastingConverter<>();
Frontend.getInstance().runQuery(QueryType.GetHostArchitecture, new IdQueryParameters(id), aQuery);
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getGlusterVolumeSnapshotsForVolume.
public void getGlusterVolumeSnapshotsForVolume(AsyncQuery<List<GlusterVolumeSnapshotEntity>> aQuery, Guid volumeId) {
aQuery.converterCallback = new ListConverter<>();
Frontend.getInstance().runQuery(QueryType.GetGlusterVolumeSnapshotsByVolumeId, new IdQueryParameters(volumeId), aQuery);
}
use of org.ovirt.engine.core.common.queries.IdQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getAllDataCenterNetworks.
public void getAllDataCenterNetworks(AsyncQuery<List<Network>> aQuery, Guid storagePoolId) {
aQuery.converterCallback = new ListConverter<>();
IdQueryParameters params = new IdQueryParameters(storagePoolId);
Frontend.getInstance().runQuery(QueryType.GetNetworksByDataCenterId, params, aQuery);
}
Aggregations