private void startMaster() {

    log.info(this.getClass(), "starting master:" + NetworkConfig.VM_MASTER);

    List<String> startupCommand = new ArrayList<String>();
    startupCommand.add("cd /");
    startupCommand.add("cd " + SystemConfig.DIRECTORY_VMSYSTEM);
    startupCommand.add(
        "java -Xmx1000m -cp vmsystem.jar de.webdataplatform.master.TestMaster master1 "
            + NetworkConfig.VM_MASTER.getIpAddress()
            + " "
            + NetworkConfig.VM_MASTER.getMessagePort());

    List<String> result =
        SSHService.sendCommand(log, NetworkConfig.VM_MASTER.getSshConnection(), startupCommand);

    log.info(this.getClass(), "\n");
  }
  private void stopMaster() {
    List<String> stopCommand = new ArrayList<String>();
    stopCommand.add("pkill -9 -f TestMaster");

    log.info(this.getClass(), "stopping master:");
    List<String> result =
        SSHService.sendCommand(log, NetworkConfig.VM_MASTER.getSshConnection(), stopCommand);

    log.info(this.getClass(), "\n");
  }
  private void readStatisticsLogMaster(String directory) {

    log.info(
        this.getClass(), "reading statistics log of master on node: " + NetworkConfig.VM_MASTER);
    SSHService.retrieveFile(
        log,
        NetworkConfig.VM_MASTER.getSshConnection(),
        SystemConfig.DIRECTORY_VMSYSTEM + "/logs",
        directory + "/masterLogs",
        "master.log");

    log.info(this.getClass(), "\n");
  }