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; }
parentPoolData.hasChildren = true; parentPoolData.totalChildrenAllocFraction += pool.getAllocFraction(); if (pool.getQueryParallelism() != null && pool.getQueryParallelism() < 1) { response.addToErrors("Invalid query parallelism for pool: " + pool.getPath()); } else { totalQueryParallelism += pool.getQueryParallelism();
for (MWMPool copyPool : src.getPools()) { MWMPool pool = new MWMPool(dest, copyPool.getPath(), copyPool.getAllocFraction(), copyPool.getQueryParallelism(), copyPool.getSchedulingPolicy()); pm.makePersistent(pool); pools.put(copyPool.getPath(), pool);
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; }
parentPoolData.hasChildren = true; parentPoolData.totalChildrenAllocFraction += pool.getAllocFraction(); if (pool.getQueryParallelism() != null && pool.getQueryParallelism() < 1) { response.addToErrors("Invalid query parallelism for pool: " + pool.getPath()); } else { totalQueryParallelism += pool.getQueryParallelism();
for (MWMPool copyPool : src.getPools()) { MWMPool pool = new MWMPool(dest, copyPool.getPath(), copyPool.getAllocFraction(), copyPool.getQueryParallelism(), copyPool.getSchedulingPolicy()); pm.makePersistent(pool); pools.put(copyPool.getPath(), pool);