@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 void release() { fireBaseEvent(RELEASED); testRunner.unregisterTask(executionTask, Phase.values()); ReleasableUtils.releaseAll(componentList, connectionList); summary = null; ReleasableUtils.releaseAll(counterStatisticSupport, statisticHolderSupport); super.release(); }