hudson.Launcher.kill()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(220)

本文整理了Java中hudson.Launcher.kill()方法的一些代码示例,展示了Launcher.kill()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Launcher.kill()方法的具体详情如下:
包路径:hudson.Launcher
类名称:Launcher
方法名:kill

Launcher.kill介绍

[英]Calls ProcessTree#killAll(Map) to kill processes.
[中]调用ProcessTree#killAll(Map)以终止进程。

代码示例

代码示例来源:origin: jenkinsci/jenkins

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }
  5. };

代码示例来源:origin: jenkinsci/jenkins

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException,
  3. InterruptedException {
  4. inner.kill(modelEnvVars);
  5. }

代码示例来源:origin: jenkinsci/jenkins

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }
  5. };

代码示例来源:origin: jenkinsci/coverity-plugin

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. decorated.kill(modelEnvVars);
  4. }

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException,
  3. InterruptedException {
  4. inner.kill(modelEnvVars);
  5. }

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }

代码示例来源:origin: org.eclipse.hudson/hudson-core

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }

代码示例来源:origin: hudson/hudson-2.x

  1. @Override
  2. public void kill(Map<String, String> modelEnvVars) throws IOException, InterruptedException {
  3. outer.kill(modelEnvVars);
  4. }

代码示例来源:origin: org.jenkins-ci.plugins.workflow/workflow-durable-task-step

  1. @Override
  2. public void run() {
  3. try {
  4. runningTask.launcher.kill(Collections.singletonMap(COOKIE_VAR, cookie));
  5. } catch (ChannelClosedException x) {
  6. // fine, Jenkins was shutting down
  7. } catch (RequestAbortedException x) {
  8. // slave was exiting; too late to kill subprocesses
  9. } catch (Exception x) {
  10. LOGGER.log(Level.WARNING, "failed to shut down " + cookie, x);
  11. }
  12. }
  13. });

代码示例来源:origin: jenkinsci/docker-slaves-plugin

  1. @Override public void run() {
  2. execution.completed(null);
  3. try {
  4. runningTask.launcher.kill(Collections.singletonMap(COOKIE_VAR, cookie));
  5. } catch (ChannelClosedException x) {
  6. // fine, Jenkins was shutting down
  7. } catch (RequestAbortedException x) {
  8. // slave was exiting; too late to kill subprocesses
  9. } catch (Exception x) {
  10. LOGGER.log(Level.WARNING, "failed to shut down " + cookie, x);
  11. }
  12. }
  13. });

代码示例来源:origin: io.jenkins.plugins/docker-slaves

  1. @Override public void run() {
  2. execution.completed(null);
  3. try {
  4. runningTask.launcher.kill(Collections.singletonMap(COOKIE_VAR, cookie));
  5. } catch (ChannelClosedException x) {
  6. // fine, Jenkins was shutting down
  7. } catch (RequestAbortedException x) {
  8. // slave was exiting; too late to kill subprocesses
  9. } catch (Exception x) {
  10. LOGGER.log(Level.WARNING, "failed to shut down " + cookie, x);
  11. }
  12. }
  13. });

相关文章