/** * Instantiate the parameter class by storage pool id and connection * @param storagePoolId * the storage pool id to set * @param connection * the connection to set */ public GetStorageDomainsByConnectionParameters(Guid storagePoolId, String connection) { setStoragePoolId(storagePoolId); setConnection(connection); }
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); }