@Override protected void startUp() throws Exception { _poolManager = new CellStub(this, new CellPath("PoolManager"), 30, SECONDS); Args args = getArgs(); checkArgument(args.argc() >= 1, "Usage : ... <pgroup0> [<pgroup1>[...]]"); for (int i = 0, n = args.argc(); i < n; i++) { _poolGroupList.add(args.argv(0)); args.shift(); } String tmp = args.getOpt("scheduler"); if ((tmp != null) && (!tmp.equals(""))) { _eventDispatcher.loadHandler(tmp, false, args); } _queueWatch = new QueueWatch(); tmp = args.getOpt("poolCollectionUpdate"); if ((tmp != null) && (!tmp.equals(""))) { try { _getPoolCollectionTicker = Long.parseLong(tmp) * 60L * 1000L; } catch (Exception ee) { _log.warn( "Illegal value for poolCollectionUpdate : {} (choosing {} millis)", tmp, _getPoolCollectionTicker); } } tmp = args.getOpt("gainControlUpdate"); if ((tmp != null) && (!tmp.equals(""))) { long gainControlTicker = 0L; try { _queueWatch.setGainControlTicker(gainControlTicker = Long.parseLong(tmp) * 60L * 1000L); } catch (Exception ee) { _log.warn( "Illegal value for gainControlUpdate : {} (choosing {} millis)", tmp, gainControlTicker); } } tmp = args.getOpt("timer"); if ((tmp != null) && (!tmp.equals(""))) { try { _timerInterval = Long.parseLong(tmp) * 1000L; } catch (Exception ee) { _log.warn("Illegal value for timer : {} (choosing {} millis)", tmp, _timerInterval); } } useInterpreter(true); }
public String ac_load_driver_$_999(Args args) throws Exception { String driverClass = args.argv(0); args.shift(); _eventDispatcher.loadHandler(driverClass, true, args); return "Loaded : " + driverClass; }