hudson.model.Computer.remove()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(106)

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

Computer.remove介绍

[英]Called by Executor to kill excessive executors from this computer.
[中]由执行者调用以从此计算机中杀死过多的执行者。

代码示例

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

private void finish2() {
  for (RuntimeException e1 : owner.getTerminatedBy()) {
    LOGGER.log(Level.FINE, String.format("%s termination trace", getName()), e1);
  }
  owner.removeExecutor(this);
  if (this instanceof OneOffExecutor) {
    owner.remove((OneOffExecutor) this);
  }
  executableEstimatedDuration = DEFAULT_ESTIMATED_DURATION;
  queue.scheduleMaintenance();
}

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

@Override
  public void run() {
    try {
      super.run();
    } finally {
      owner.remove(this);
    }
  }
}

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

private void finish2() {
  for (RuntimeException e1 : owner.getTerminatedBy()) {
    LOGGER.log(Level.FINE, String.format("%s termination trace", getName()), e1);
  }
  owner.removeExecutor(this);
  if (this instanceof OneOffExecutor) {
    owner.remove((OneOffExecutor) this);
  }
  queue.scheduleMaintenance();
}

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

@Override
  public void run() {
    try {
      super.run();
    } finally {
      owner.remove(this);
    }
  }
}

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

@Override
  public void run() {
    try {
      super.run();
    } finally {
      owner.remove(this);
    }
  }
}

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

@Override
  public void run() {
    try {
      super.run();
    } finally {
      owner.remove(this);
    }
  }
}

相关文章

微信公众号

最新文章

更多