Search in sources :

Example 1 with Bash

use of com.hazelcast.simulator.utils.Bash in project hazelcast-simulator by hazelcast.

the class SimulatorProvisioner method provision.

public void provision() {
    Bash bash = new Bash(simulatorProperties);
    Provisioner provisioner = new Provisioner(simulatorProperties, bash);
    provisioner.scale(machineCount, new HashMap<String, String>());
}
Also used : Provisioner(com.hazelcast.simulator.provisioner.Provisioner) Bash(com.hazelcast.simulator.utils.Bash)

Example 2 with Bash

use of com.hazelcast.simulator.utils.Bash in project hazelcast-simulator by hazelcast.

the class WizardTest method before.

@Before
public void before() {
    setupFakeEnvironment();
    simulatorProperties = mock(SimulatorProperties.class);
    when(simulatorProperties.getUser()).thenReturn(SSH_USERNAME);
    when(simulatorProperties.getSshOptions()).thenReturn("");
    bash = mock(Bash.class);
    workDir = new File("wizardTestWorkDir").getAbsoluteFile();
    testPropertiesFile = new File(workDir, "test.properties");
    runScriptFile = new File(workDir, "run");
    prepareScriptFile = new File(workDir, "prepare");
    simulatorPropertiesFile = new File(workDir, SimulatorProperties.PROPERTIES_FILE_NAME);
    agentsFile = new File(workDir, AgentsFile.NAME);
    localSimulatorPropertiesFile = new File(SimulatorProperties.PROPERTIES_FILE_NAME).getAbsoluteFile();
    profileFile = ensureExistingFile("wizardTest.txt");
    wizard = new Wizard();
}
Also used : Bash(com.hazelcast.simulator.utils.Bash) AgentsFile(com.hazelcast.simulator.common.AgentsFile) File(java.io.File) FileUtils.ensureExistingFile(com.hazelcast.simulator.utils.FileUtils.ensureExistingFile) SimulatorProperties(com.hazelcast.simulator.common.SimulatorProperties) Before(org.junit.Before)

Aggregations

Bash (com.hazelcast.simulator.utils.Bash)2 AgentsFile (com.hazelcast.simulator.common.AgentsFile)1 SimulatorProperties (com.hazelcast.simulator.common.SimulatorProperties)1 Provisioner (com.hazelcast.simulator.provisioner.Provisioner)1 FileUtils.ensureExistingFile (com.hazelcast.simulator.utils.FileUtils.ensureExistingFile)1 File (java.io.File)1 Before (org.junit.Before)1