/** * Sets the designated worker pool size. If this size is larger than the current pool * size, then the resource manager will try to acquire more TaskManagers. * * @param num The number of workers in the pool. */ private void adjustDesignatedNumberOfWorkers(int num) { if (num >= 0) { LOG.info("Adjusting designated worker pool size to {}", num); designatedPoolSize = num; checkWorkersPool(); } else { LOG.warn("Ignoring invalid designated worker pool size: " + num); } }
/** * Sets the designated worker pool size. If this size is larger than the current pool * size, then the resource manager will try to acquire more TaskManagers. * * @param num The number of workers in the pool. */ private void adjustDesignatedNumberOfWorkers(int num) { if (num >= 0) { LOG.info("Adjusting designated worker pool size to {}", num); designatedPoolSize = num; checkWorkersPool(); } else { LOG.warn("Ignoring invalid designated worker pool size: " + num); } }
/** * Sets the designated worker pool size. If this size is larger than the current pool * size, then the resource manager will try to acquire more TaskManagers. * * @param num The number of workers in the pool. */ private void adjustDesignatedNumberOfWorkers(int num) { if (num >= 0) { LOG.info("Adjusting designated worker pool size to {}", num); designatedPoolSize = num; checkWorkersPool(); } else { LOG.warn("Ignoring invalid designated worker pool size: " + num); } }
/** * Sets the designated worker pool size. If this size is larger than the current pool * size, then the resource manager will try to acquire more TaskManagers. * * @param num The number of workers in the pool. */ private void adjustDesignatedNumberOfWorkers(int num) { if (num >= 0) { LOG.info("Adjusting designated worker pool size to {}", num); designatedPoolSize = num; checkWorkersPool(); } else { LOG.warn("Ignoring invalid designated worker pool size: " + num); } }