private WMPool fromMPool(MWMPool mPool, String rpName) { WMPool result = new WMPool(rpName, mPool.getPath()); assert mPool.getAllocFraction() != null; result.setAllocFraction(mPool.getAllocFraction()); assert mPool.getQueryParallelism() != null; result.setQueryParallelism(mPool.getQueryParallelism()); result.setSchedulingPolicy(mPool.getSchedulingPolicy()); result.setNs(mPool.getResourcePlan().getNs()); return result; }
Map<String, Set<MWMPool>> triggersToPools = new HashMap<>(); for (MWMPool copyPool : src.getPools()) { MWMPool pool = new MWMPool(dest, copyPool.getPath(), copyPool.getAllocFraction(), copyPool.getQueryParallelism(), copyPool.getSchedulingPolicy()); pm.makePersistent(pool);
PoolData parentPoolData = getPoolData(poolInfo, parent); parentPoolData.hasChildren = true; parentPoolData.totalChildrenAllocFraction += pool.getAllocFraction(); if (pool.getQueryParallelism() != null && pool.getQueryParallelism() < 1) { response.addToErrors("Invalid query parallelism for pool: " + pool.getPath());
private WMPool fromMPool(MWMPool mPool, String rpName) { WMPool result = new WMPool(rpName, mPool.getPath()); assert mPool.getAllocFraction() != null; result.setAllocFraction(mPool.getAllocFraction()); assert mPool.getQueryParallelism() != null; result.setQueryParallelism(mPool.getQueryParallelism()); result.setSchedulingPolicy(mPool.getSchedulingPolicy()); return result; }
Map<String, Set<MWMPool>> triggersToPools = new HashMap<>(); for (MWMPool copyPool : src.getPools()) { MWMPool pool = new MWMPool(dest, copyPool.getPath(), copyPool.getAllocFraction(), copyPool.getQueryParallelism(), copyPool.getSchedulingPolicy()); pm.makePersistent(pool);
PoolData parentPoolData = getPoolData(poolInfo, parent); parentPoolData.hasChildren = true; parentPoolData.totalChildrenAllocFraction += pool.getAllocFraction(); if (pool.getQueryParallelism() != null && pool.getQueryParallelism() < 1) { response.addToErrors("Invalid query parallelism for pool: " + pool.getPath());