public boolean isProcessRunning() { if (getProcessId() > 0) { return Processes.isProcessRunning(distribution.getPlatform(), getProcessId()); } return false; }
public ProcessControl(SupportConfig runtime, Process process) { this.process = process; this.runtime = runtime; reader = new InputStreamReader(this.process.getInputStream()); error = new InputStreamReader(this.process.getErrorStream()); pid = Processes.processId(this.process); }
.killProcess( new SupportConfig( Command.MemcacheD), logger.warning( "could not kill memcached, try next"); if (!Processes.termProcess( new SupportConfig(Command.MemcacheD), platform, logger.warning( "could not term memcached, try next"); if (!Processes.tryKillProcess( new SupportConfig( Command.MemcacheD),
protected boolean tryKillToProcess() { if (processId > 0) { return Processes.tryKillProcess(config.supportConfig(), distribution.getPlatform(), StreamToLineProcessor.wrap(runtimeConfig.getProcessOutput().getCommands()), processId); } return false; }
protected boolean sendKillToProcess() { if (processId > 0) { return Processes.killProcess(config.supportConfig(), distribution.getPlatform(), StreamToLineProcessor.wrap(runtimeConfig.getProcessOutput().getCommands()), processId); } return false; }
protected boolean sendTermToProcess() { if (processId > 0) { return Processes.termProcess(config.supportConfig(), distribution.getPlatform(), StreamToLineProcessor.wrap(runtimeConfig.getProcessOutput().getCommands()), processId); } return false; }
protected boolean tryKillToProcess() { return getProcessId() > 0 && Processes.tryKillProcess(config.supportConfig(), distribution.platform(), StreamToLineProcessor.wrap(runtimeConfig.getProcessOutput().getCommands()), getProcessId()); }
protected boolean sendKillToProcess() { return getProcessId() > 0 && Processes.killProcess(config.supportConfig(), distribution.platform(), StreamToLineProcessor.wrap(runtimeConfig.getProcessOutput().getCommands()), getProcessId()); }
protected boolean sendTermToProcess() { return getProcessId() > 0 && Processes.termProcess(config.supportConfig(), distribution.platform(), StreamToLineProcessor.wrap(runtimeConfig.getProcessOutput().getCommands()), getProcessId()); }
public boolean isProcessRunning() { return getProcessId() > 0 && Processes.isProcessRunning(distribution.platform(), getProcessId()); }
public ProcessControl(ISupportConfig runtime, Process process) { this.process = process; this.runtime = runtime; reader = new InputStreamReader(this.process.getInputStream()); error = new InputStreamReader(this.process.getErrorStream()); pid = Processes.processId(this.process); }