Package org.apache.uima.ducc.transport.cmdline

Examples of org.apache.uima.ducc.transport.cmdline.ICommandLine.addArgument()


        if ( ((ManagedProcess) managedProcess).getDuccProcess().getProcessType().equals(ProcessType.Service) ||
          ((ManagedProcess) managedProcess).getDuccProcess().getProcessType().equals(ProcessType.Pop)) {
                ICommandLine cmdL;
                  if (Utils.isWindows()) {
                    cmdL = new NonJavaCommandLine("taskkill");
                    cmdL.addArgument("/PID");
                } else {
                    cmdL = new NonJavaCommandLine("/bin/kill");
                    if ( ((ManagedProcess) managedProcess).isJd() ) {
                      // kill JD hard.
                      cmdL.addArgument("-9");
View Full Code Here


                    cmdL.addArgument("/PID");
                } else {
                    cmdL = new NonJavaCommandLine("/bin/kill");
                    if ( ((ManagedProcess) managedProcess).isJd() ) {
                      // kill JD hard.
                      cmdL.addArgument("-9");
                    } else {
                      cmdL.addArgument("-15");
                    }
                }
                cmdL.addArgument(((ManagedProcess) managedProcess).getDuccProcess().getPID());
View Full Code Here

                    cmdL = new NonJavaCommandLine("/bin/kill");
                    if ( ((ManagedProcess) managedProcess).isJd() ) {
                      // kill JD hard.
                      cmdL.addArgument("-9");
                    } else {
                      cmdL.addArgument("-15");
                    }
                }
                cmdL.addArgument(((ManagedProcess) managedProcess).getDuccProcess().getPID());

//          String[] sigTermCmdLine = new String[] {"/bin/kill","-15",((ManagedProcess) managedProcess).getDuccProcess().getPID()};
View Full Code Here

                      cmdL.addArgument("-9");
                    } else {
                      cmdL.addArgument("-15");
                    }
                }
                cmdL.addArgument(((ManagedProcess) managedProcess).getDuccProcess().getPID());

//          String[] sigTermCmdLine = new String[] {"/bin/kill","-15",((ManagedProcess) managedProcess).getDuccProcess().getPID()};
                String[] sigTermCmdLine = getDeployableCommandLine(cmdL, new HashMap<String, String>());
                doExec(new ProcessBuilder(sigTermCmdLine), sigTermCmdLine, true);
        } else {
View Full Code Here

            // will kill it hard
            ICommandLine cmdLine;
            try {
              if (Utils.isWindows()) {
                cmdLine = new NonJavaCommandLine("taskkill");
                cmdLine.addArgument("/PID");
              } else {
                cmdLine = new NonJavaCommandLine("/bin/kill");
                cmdLine.addArgument("-9");
              }
              cmdLine.addArgument(pid);
View Full Code Here

              if (Utils.isWindows()) {
                cmdLine = new NonJavaCommandLine("taskkill");
                cmdLine.addArgument("/PID");
              } else {
                cmdLine = new NonJavaCommandLine("/bin/kill");
                cmdLine.addArgument("-9");
              }
              cmdLine.addArgument(pid);
              launcher.launchProcess(this, getIdentity(), process, cmdLine, this, deployedProcess);
            } catch (Exception e) {
              logger.error(methodName, null, e);
View Full Code Here

                cmdLine.addArgument("/PID");
              } else {
                cmdLine = new NonJavaCommandLine("/bin/kill");
                cmdLine.addArgument("-9");
              }
              cmdLine.addArgument(pid);
              launcher.launchProcess(this, getIdentity(), process, cmdLine, this, deployedProcess);
            } catch (Exception e) {
              logger.error(methodName, null, e);
            }
          } else if (!deployedProcess.getDuccProcess().getProcessState()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.