private void queryAllPoolModes() { List<HFCPool> list; synchronized (this) { list = new ArrayList<>(_configuredPoolList.values()); } for (HFCPool pool : list) { pool.queryMode(); } }
public String ac_query_pool_mode_$_1(Args args) { String poolName = args.argv(0); HFCPool pool = _poolCollector.getPoolByName(poolName); if (pool == null) { throw new NoSuchElementException("Pool not found : " + poolName); } pool.queryMode(); return "Pool mode query sent to Pool " + poolName; }