public static String loadClientHzConfig() { File file = getConfigurationFile("client-hazelcast.xml"); LOGGER.info("Loading Hazelcast client configuration: " + file.getAbsolutePath()); return fileAsText(file); }
public static String loadMemberHzConfig() { File file = getConfigurationFile("hazelcast.xml"); LOGGER.info("Loading Hazelcast member configuration: " + file.getAbsolutePath()); return fileAsText(file); }
public void run() { if (runMode(simulatorProperties) == RunMode.Embedded) { return; } String ipString = ""; if (runMode(simulatorProperties) == RunMode.Remote) { ipString = join(publicIps, ","); } String vendor = simulatorProperties.get("VENDOR"); String installFile = getConfigurationFile("install-" + vendor + ".sh").getPath(); for (String versionSpec : versionSpecs) { LOGGER.info("Installing '" + vendor + "' version '" + versionSpec + "' on Agents using " + installFile); new BashCommand(installFile) .addParams(sessionId, versionSpec, ipString) .addEnvironment(simulatorProperties.asMap()) .execute(); LOGGER.info("Successfully installed '" + vendor + "'"); } } }
private CoordinatorParameters loadCoordinatorParameters() { CoordinatorParameters coordinatorParameters = new CoordinatorParameters() .setSimulatorProperties(simulatorProperties) .setWorkerClassPath(options.valueOf(workerClassPathSpec)) .setLastTestPhaseToSync(options.valueOf(syncToTestPhaseSpec)) .setAfterCompletionFile(getConfigurationFile("after-completion.sh").getAbsolutePath()) .setPerformanceMonitorIntervalSeconds(getPerformanceMonitorInterval()) .setSkipDownload(options.has(skipDownloadSpec)) .setWorkerVmStartupDelayMs(options.valueOf(workerVmStartupDelayMsSpec)) .setLicenseKey(options.valueOf(licenseKeySpec)); if (options.has(sessionIdSpec)) { coordinatorParameters.setSessionId(options.valueOf(sessionIdSpec)); } return coordinatorParameters; }