Package org.jboss.narayana.blacktie.jatmibroker.core.conf

Examples of org.jboss.narayana.blacktie.jatmibroker.core.conf.Machine


      while (launchers.hasNext()) {
        Server server = launchers.next();
        Iterator<Machine> iterator2 = server.getLocalMachine()
            .iterator();
        while (iterator2.hasNext()) {
          Machine machine = iterator2.next();
          ServerToStop serverToStop = new ServerToStop();
          serverToStop.setName(server.getName());
          serverToStop.setId(machine.getServerId());
          serversToStop.add(serverToStop);
        }
      }
    } else {
      ServerToStop serverToStop = new ServerToStop();
View Full Code Here


        if (localMachinesList.size() != 0) {
          Iterator<Machine> localMachines = localMachinesList
              .iterator();
          while (localMachines.hasNext()) {
            log.debug("Found machine");
            Machine localMachine = localMachines.next();
            String pathToExecutable = localMachine
                .getPathToExecutable();
            String argLine = "-i " + localMachine.getServerId()
                + " -s " + localMachine.getServer().getName();
            if (localMachine.getArgLine() != null) {
              argLine = argLine + " " + localMachine.getArgLine();
            }
            String[] split = argLine.split(" ");
            String[] cmdarray = new String[split.length + 1 + 0];
            cmdarray[0] = pathToExecutable;
            System.arraycopy(split, 0, cmdarray, 1, split.length);
            String[] envp = null;
            File dir = new File(localMachine.getWorkingDirectory());
            Process exec = Runtime.getRuntime().exec(cmdarray,
                envp, dir);
            log.debug("Launched server: " + pathToExecutable);
            BufferedReader output = new BufferedReader(
                new InputStreamReader(exec.getInputStream()));
View Full Code Here

TOP

Related Classes of org.jboss.narayana.blacktie.jatmibroker.core.conf.Machine

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.