Package net.grinder

Examples of net.grinder.SingleConsole


  }

  void doFinish() {
    for (PerfTest each : perfTestService.getAllAbnormalTesting()) {
      LOG.info("Terminate {}", each.getId());
      SingleConsole consoleUsingPort = consoleManager.getConsoleUsingPort(each.getPort());
      doTerminate(each, consoleUsingPort);
      cleanUp(each);
      notifyFinish(each, StopReason.TOO_MANY_ERRORS);
    }

    for (PerfTest each : perfTestService.getAllStopRequested()) {
      LOG.info("Stop test {}", each.getId());
      SingleConsole consoleUsingPort = consoleManager.getConsoleUsingPort(each.getPort());
      doCancel(each, consoleUsingPort);
      cleanUp(each);
      notifyFinish(each, StopReason.CANCEL_BY_USER);
    }

    for (PerfTest each : perfTestService.getAllTesting()) {
      SingleConsole consoleUsingPort = consoleManager.getConsoleUsingPort(each.getPort());
      if (isTestFinishCandidate(each, consoleUsingPort)) {
        doNormalFinish(each, consoleUsingPort);
        cleanUp(each);
        notifyFinish(each, StopReason.NORMAL);
      }
View Full Code Here


        throw processException("no console entry available");
      }
      synchronized (this) {
        consoleEntry.releaseSocket();
        // FIXME : It might fail here
        SingleConsole singleConsole = new SingleConsole(config.getCurrentIP(), consoleEntry.getPort(),
            baseConsoleProperties);
        getConsoleInUse().add(singleConsole);
        return singleConsole;
      }
    } catch (Exception e) {
View Full Code Here

  @Test
  public void testAddMonitor() throws IOException {
    PerfTest perfTest = mock(PerfTest.class);
    when(perfTest.getTargetHostIP()).thenReturn(Lists.newArrayList("127.0.0.1"));
    when(perfTest.getSamplingInterval()).thenReturn(2);
    SingleConsole singleConsole = mock(SingleConsole.class);
    when(singleConsole.getReportPath()).thenReturn(tempReport);
    MonitorCollectorPlugin monitorCollectorPlugin = new MonitorCollectorPlugin(config, scheduledTaskService,
        perfTestService, 1L) {
      @Override
      protected int getPort(IConfig config) {
        return 13243;
View Full Code Here

TOP

Related Classes of net.grinder.SingleConsole

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.