@Override public void execute(ManagedServer server) throws Exception { assert Thread.holdsLock(ManagedServer.this); // Call under lock final List<String> command = bootConfiguration.getServerLaunchCommand(); final Map<String, String> env = bootConfiguration.getServerLaunchEnvironment(); final HostControllerEnvironment environment = bootConfiguration.getHostControllerEnvironment(); // Add the process to the process controller processControllerClient.addProcess(serverProcessName, authKey, command.toArray(new String[command.size()]), environment.getHomeDir().getAbsolutePath(), env); }
@Override public boolean execute(ManagedServer server) throws Exception { assert Thread.holdsLock(ManagedServer.this); // Call under lock final List<String> command = bootConfiguration.getServerLaunchCommand(); final Map<String, String> env = bootConfiguration.getServerLaunchEnvironment(); final HostControllerEnvironment environment = bootConfiguration.getHostControllerEnvironment(); final int processId = bootConfiguration.getServerProcessId(); // Add the process to the process controller processControllerClient.addProcess(serverProcessName, processId, authKey, command.toArray(new String[command.size()]), environment.getHomeDir().getAbsolutePath(), env); return true; }
@Override public boolean execute(ManagedServer server) throws Exception { assert Thread.holdsLock(ManagedServer.this); // Call under lock final List<String> command = bootConfiguration.getServerLaunchCommand(); final Map<String, String> env = bootConfiguration.getServerLaunchEnvironment(); final HostControllerEnvironment environment = bootConfiguration.getHostControllerEnvironment(); final int processId = bootConfiguration.getServerProcessId(); // Add the process to the process controller processControllerClient.addProcess(serverProcessName, processId, authKey, command.toArray(new String[command.size()]), environment.getHomeDir().getAbsolutePath(), env); return true; }