Package net.grinder.console.model

Examples of net.grinder.console.model.ConsoleProperties


    assertThat(fileList, not(nullValue()));

    File scriptFile = testService.getLogFile(testScript.getId(), testScript.getScriptName());
    assertThat(scriptFile, not(nullValue()));

    ConsoleProperties consoleProperties = testService.createConsoleProperties(testScript);
    assertThat(consoleProperties, not(nullValue()));

  }
View Full Code Here


   * @return started console
   */
  SingleConsole startConsole(PerfTest perfTest) {
    perfTestService.markStatusAndProgress(perfTest, START_CONSOLE, "Console is being prepared.");
    // get available consoles.
    ConsoleProperties consoleProperty = perfTestService.createConsoleProperties(perfTest);
    SingleConsole singleConsole = consoleManager.getAvailableConsole(consoleProperty);
    singleConsole.start();
    perfTestService.markPerfTestConsoleStart(perfTest, singleConsole.getConsolePort());
    return singleConsole;
  }
View Full Code Here

   */
  public static ConsoleProperties createEmptyConsoleProperties() {
    File tmpFile = null;
    try {
      tmpFile = File.createTempFile("ngrinder", "tmp");
      return new ConsoleProperties(SingleConsole.RESOURCE, tmpFile);
    } catch (Exception e) {
      throw processException("Exception occurred while creating empty console property", e);
    } finally {
      FileUtils.deleteQuietly(tmpFile);
    }
View Full Code Here

   *
   * @param perfTest perfTest
   * @return {@link ConsoleProperties}
   */
  public ConsoleProperties createConsoleProperties(PerfTest perfTest) {
    ConsoleProperties consoleProperties = ConsolePropertiesFactory.createEmptyConsoleProperties();
    try {
      consoleProperties.setAndSaveDistributionDirectory(new Directory(getDistributionPath(perfTest)));
      consoleProperties.setConsoleHost(config.getCurrentIP());
      consoleProperties.setIgnoreSampleCount(getSafe(perfTest.getIgnoreSampleCount()));
      consoleProperties.setSampleInterval(1000 * getSafe(perfTest.getSamplingInterval()));
    } catch (Exception e) {
      throw processException("Error while setting console properties", e);
    }
    return consoleProperties;
  }
View Full Code Here

TOP

Related Classes of net.grinder.console.model.ConsoleProperties

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.