/** * Called when a test is started on a specific host. This implementation * sets the running indicator and ensures that the menubar is in the running * state. * * @param host * the host where the test is starting */ @Override public void testStarted(String host) { hosts.add(host); computeTestDurationTimer.start(); runningIndicator.setIcon(runningIcon); activeAndTotalThreads.setText("0/0"); // $NON-NLS-1$ menuBar.setRunning(true, host); if (LOCAL.equals(host)) { toolbar.setLocalTestStarted(true); } else { toolbar.setRemoteTestStarted(true); } }
/** * Called when a test is ended on the remote system. This implementation * stops the running indicator and closes the stopping message dialog. * * @param host * the host where the test is ending */ @Override public void testEnded(String host) { hosts.remove(host); if (hosts.isEmpty()) { runningIndicator.setIcon(stoppedIcon); JMeterContextService.endTest(); computeTestDurationTimer.stop(); } menuBar.setRunning(false, host); if (LOCAL.equals(host)) { toolbar.setLocalTestStarted(false); } else { toolbar.setRemoteTestStarted(false); } if (stoppingMessage != null) { stoppingMessage.dispose(); stoppingMessage = null; } }