Package org.apache.uima.ducc.agent.launcher

Examples of org.apache.uima.ducc.agent.launcher.ManagedProcess.kill()


          } else if (duccEvent.getState().equals(ProcessState.FailedInitialization)) {
            deployedProcess.getDuccProcess().setReasonForStoppingProcess(
                    ReasonForStoppingProcess.FailedInitialization.toString());
            // Mark the process for death. Doesnt actually kill the
            // process
            deployedProcess.kill();
            logger.info(methodName, null, ">>>> Agent Handling Process FailedInitialization. PID:"
                    + duccEvent.getPid() + " Killing Process");
            super.getContext().stopRoute(duccEvent.getPid());
            logger.info(methodName, null,
                    "----------- Agent Stopped ProcessMemoryUsagePollingRouter for Process:"
View Full Code Here


          } else if (duccEvent.getState().equals(ProcessState.InitializationTimeout)) {
            deployedProcess.getDuccProcess().setReasonForStoppingProcess(
                    ReasonForStoppingProcess.InitializationTimeout.toString());
            // Mark the process for death. Doesnt actually kill the
            // process
            deployedProcess.kill();
            logger.info(methodName, null, ">>>> Agent Handling Process InitializationTimeout. PID:"
                    + duccEvent.getPid() + " Killing Process");
            super.getContext().stopRoute(duccEvent.getPid());
            logger.info(methodName, null,
                    "----------- Agent Stopped ProcessMemoryUsagePollingRouter for Process:"
View Full Code Here

    if ( agent.deployedProcesses.size() > 0 ) {
      logger.warn("ProcessReaperTask.run()", null, "Agent timed out waiting for a Ping Message. Assuming network connectivity problem and killing all running JPs");
      Iterator<ManagedProcess> it = agent.deployedProcesses.iterator();
      while( it.hasNext()) {
        ManagedProcess mp = it.next();
        mp.kill();
        mp.getDuccProcess().setReasonForStoppingProcess(ReasonForStoppingProcess.AgentTimedOutWaitingForORState.toString());
        String pid = mp.getDuccProcess().getPID();
        agent.stopProcess(mp.getDuccProcess());
        logger.info("ProcessReaperTask.run()", null, "Agent calling stopProcess:"+pid);
      }
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.