Search in sources :

Example 1 with GetStorageDomainsByConnectionParameters

use of org.ovirt.engine.core.common.queries.GetStorageDomainsByConnectionParameters in project ovirt-engine by oVirt.

the class AsyncDataProvider method getStorageDomainsByConnection.

public void getStorageDomainsByConnection(AsyncQuery<List<StorageDomain>> aQuery, Guid storagePoolId, String connectionPath) {
    aQuery.converterCallback = new CastingConverter<>();
    GetStorageDomainsByConnectionParameters param = new GetStorageDomainsByConnectionParameters();
    param.setConnection(connectionPath);
    if (storagePoolId != null) {
        param.setStoragePoolId(storagePoolId);
    }
    Frontend.getInstance().runQuery(QueryType.GetStorageDomainsByConnection, param, aQuery);
}
Also used : GetStorageDomainsByConnectionParameters(org.ovirt.engine.core.common.queries.GetStorageDomainsByConnectionParameters)

Aggregations

GetStorageDomainsByConnectionParameters (org.ovirt.engine.core.common.queries.GetStorageDomainsByConnectionParameters)1