Examples of kill()


Examples of org.apache.oozie.client.OozieClient.kill()

        OozieClient ozClient = OozieClientFactory.get(cluster.getCluster());
        List<BundleJob> bundles = getBundles();
        if (bundles != null) {
            for (BundleJob bundle : bundles) {
                ozClient.kill(bundle.getId());
            }
        }
        return false;
    }
View Full Code Here

Examples of org.apache.oozie.client.ProxyOozieClient.kill()

        ProxyOozieClient ozClient = getOozieClient(context);
        List<BundleJob> bundles = getBundles(context);
        if (bundles != null) {
            for (BundleJob bundle : bundles) {
                ozClient.kill(bundle.getId());
            }
        }

        return false;
    }
View Full Code Here

Examples of org.apache.oozie.client.XOozieClient.kill()

            }
            else if (options.contains(RESUME_OPTION)) {
                wc.resume(commandLine.getOptionValue(RESUME_OPTION));
            }
            else if (options.contains(KILL_OPTION)) {
                wc.kill(commandLine.getOptionValue(KILL_OPTION));
            }
            else if (options.contains(CHANGE_OPTION)) {
                wc.change(commandLine.getOptionValue(CHANGE_OPTION), getChangeValue(commandLine));
            }
            else if (options.contains(RUN_OPTION)) {
View Full Code Here

Examples of org.apache.openejb.server.control.StandaloneServer.kill()

            logger.info("Asserting balance");
            assertBalance(bean, services.get().size());

            logger.info("Shutting down " + name);
            server.kill();
            services.remove(serverURI);
        }

        logger.info("All Servers Shutdown");
View Full Code Here

Examples of org.apache.slider.core.launch.LaunchedApplication.kill()

    applicationId = application.getApplicationId();
   

    if (forcekill) {
      //escalating to forced kill
      application.kill("Forced freeze of " + clustername +
                       ": " + text);
    } else {
      try {
        SliderClusterProtocol appMaster = connect(app);
        Messages.StopClusterRequestProto r =
View Full Code Here

Examples of org.apache.twill.api.TwillController.kill()

    // Hence we give 90 seconds max time here.
    try {
      Services.getCompletionFuture(controller).get(90, TimeUnit.SECONDS);
    } finally {
      // If it timeout, kill the app as cleanup.
      controller.kill();
    }
  }

  /**
   * The handler for testing timeout handling.
View Full Code Here

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

Examples of org.codehaus.xharness.procutil.BgProcess.kill()

        KillTask kill = new KillTask();
        kill.setProject(project);
        kill.setProcessname(PROC_NAME);
        MockControl ctrl = MockControl.createControl(BgProcess.class);
        BgProcess proc = (BgProcess)ctrl.getMock();
        proc.kill();
       
        ctrl.replay();
        ProcessRegistry.registerProcess(PROC_NAME, proc);
        kill.execute();
        ctrl.verify();
View Full Code Here

Examples of org.codehaus.xharness.procutil.BgProcess.kill()

        KillTask kill = new KillTask();
        kill.setProject(project);
        kill.setProcessname(PROC_NAME);
        MockControl ctrl = MockControl.createControl(BgProcess.class);
        BgProcess proc = (BgProcess)ctrl.getMock();
        proc.kill();
        ctrl.setThrowable(new BuildException("blah"));
       
        ctrl.replay();
        ProcessRegistry.registerProcess(PROC_NAME, proc);
        try {
View Full Code Here

Examples of org.codehaus.xharness.procutil.BgProcess.kill()

        kill.setProject(project);
        kill.setProcessname(PROC_NAME);
        kill.setFailonerror(false);
        MockControl ctrl = MockControl.createControl(BgProcess.class);
        BgProcess proc = (BgProcess)ctrl.getMock();
        proc.kill();
        ctrl.setThrowable(new BuildException("blah"));
       
        ctrl.replay();
        ProcessRegistry.registerProcess(PROC_NAME, proc);
        kill.execute();
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.