Examples of kill()


Examples of org.jboss.wsf.common.concurrent.CopyJob.kill()

         ie.printStackTrace(System.err);
      }
      finally
      {
         inputStreamJob.kill();
         errorStreamJob.kill();
         p.destroy();
      }
   }

   public MBeanServerConnection getServer() throws NamingException
View Full Code Here

Examples of org.jruby.ext.posix.POSIX.kill()

            int pid = RubyNumeric.num2int(args[i]);

            // FIXME: It may be possible to killpg on systems which support it.  POSIX library
            // needs to tell whether a particular method works or not
            if (pid == 0) pid = runtime.getPosix().getpid();
            posix.kill(processGroupKill ? -pid : pid, signal);           
        }
       
        return runtime.newFixnum(args.length - 1);

    }
View Full Code Here

Examples of org.radargun.traits.Killable.kill()

               log.info("Killing service.");
               stoppingTime = System.currentTimeMillis();
               if (async) {
                  killable.killAsync();
               } else {
                  killable.kill();
               }
            }
            long stoppedTime = System.currentTimeMillis();
            slaveState.getTimeline().addEvent(LIFECYCLE, new Timeline.IntervalEvent(stoppingTime, "Stop", stoppedTime - stoppingTime));
         } finally {
View Full Code Here

Examples of org.rhq.core.system.ProcessInfo.kill()

            return new OperationResult("Failed to obtain process info. It appears Cassandra is already shutdown.");
        }

        long pid = process.getPid();
        try {
            process.kill("KILL");

            Configuration pluginConfig = getResourceContext().getPluginConfiguration();
            File basedir = new File(pluginConfig.getSimpleValue("baseDir"));
            File binDir = new File(basedir, "bin");
            File pidFile = new File(binDir, "cassandra.pid");
View Full Code Here

Examples of org.rhq.core.system.ProcessInfo.kill()

                long pid = readPidFile(pidFile);
                log.info("Shutting down storage node with pid " + pid);
                ProcessInfo process = findProcessInfo(pid);
                if (process != null) {
                    try {
                        process.kill("KILL");
                        waitForNodeToGoDown();
                        pidFile.delete();
                        result.setSimpleResult("Successfully storage node with pid " + pid);
                    } catch (SigarException e) {
                        log.error("Failed to delete storage node with pid " + process.getPid(), e);
View Full Code Here

Examples of org.rzo.yajsw.os.Process.kill()

      Runtime.getRuntime().addShutdownHook(new Thread()
      {
        public void run()
        {
          if (_osProcess != null)
            _osProcess.kill(0);
        }
      });
      return _osProcess;
    }
    catch (Exception e)
View Full Code Here

Examples of org.rzo.yajsw.os.Process.kill()

      p.setCommand(getScript() + " " + id + " " + state + " " + count + " " + pid + " " + exitCode);
      p.setPipeStreams(false, false);
      p.start();
      p.waitFor(getTimeout());
      if (p.isRunning())
        p.kill(999);
      if (p.getExitCode() != 0)
        System.out.println("script " + getScript() + "returned " + p.getExitCode());
      p.destroy();
    }
    catch (Exception ex)
View Full Code Here

Examples of org.spout.vanilla.component.entity.misc.Health.kill()

    Health health = player.get(Health.class);
    if (health == null) {
      throw new CommandException(player.getDisplayName() + " can not be killed.");
    }
    health.kill(HealthChangeCause.COMMAND);
  }

  @CommandDescription (aliases = {"version", "vr"}, usage = "", desc = "Print out the version information for Vanilla")
  @Permissible ("vanilla.command.version")
  public void getVersion(CommandSource source, CommandArguments args) throws ArgumentParseException {
View Full Code Here

Examples of org.xilaew.jampl.JAMPL.kill()

    jampl.setSolver("couenne");
    printResult(jampl.solve());
    System.out.println("found a result!");
    System.out.println("a is: "+jampl.getParameter("a"));
    System.out.println("x is: "+jampl.getVariable("x"));
    jampl.kill();
  }

  private static void printResult(SolveResult result) {
    switch (result) {
    case Unbounded:
View Full Code Here

Examples of ru.vassaev.core.thread.Process.kill()

        if (r != null)
          xr.parse(new InputSource(r));
      } finally {
        queue.put(new Data(TYPE.END));
        p.waitEndProcessing();
        if (prcs == null) p.kill();
        else prcs.free(p);
        if (r != null)
          r.close();
      }
    } catch (FileNotFoundException e) {
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.