*
* @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;
}