@Override protected void init() { super.init(); counterSupport.init(this); loadingErrors = false; String[] limitStrings = getAttribute(LIMITS_ATTRIBUTE, "").split(";"); for (String limit : limitStrings) { String[] parts = limit.split("=", 2); try { if (parts.length == 2) setLimit(parts[0], Long.parseLong(parts[1])); } catch (NumberFormatException e) { // Ignore } } createComponents(); createConnections(); removeBadComponents(); removeBadConnections(); addEventListener(BaseEvent.class, new ActionListener()); testRunner.registerTask(executionTask, Phase.START, Phase.PRE_STOP, Phase.STOP); // timer.scheduleAtFixedRate( timerTask, 1000, 1000 ); statisticHolderSupport.init(); counterStatisticSupport.init(); }
@Override public Collection<String> getCounterNames() { return counterSupport.getCounterNames(); }
@Override public Counter getCounter(String counterName) { if (TIMER_COUNTER.equals(counterName)) return timerCounter; return counterSupport.getCounter(counterName); }