hudson.model.Hudson.updateComputerList()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(112)

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

Hudson.updateComputerList介绍

[英]Updates #computers by using #getSlaves().

This method tries to reuse existing Computer objects so that we won't upset Executors running in it.
[中]使用#getSlaves()更新#计算机。
这种方法试图重用现有的计算机对象,这样我们就不会打乱在其中运行的执行者。

代码示例

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

public void setNodes(List<? extends Node> nodes) throws IOException {
  // make sure that all names are unique
  Set<String> names = new HashSet<String>();
  for (Node n : nodes) {
    if (!names.add(n.getNodeName())) {
      throw new IllegalArgumentException(n.getNodeName() + " is defined more than once");
    }
  }
  this.slaves = new NodeList(nodes);
  updateComputerList();
  trimLabels();
  save();
}

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

public void setNodes(List<? extends Node> nodes) throws IOException {
  // make sure that all names are unique
  Set<String> names = new HashSet<String>();
  for (Node n : nodes) {
    if (!names.add(n.getNodeName())) {
      throw new IllegalArgumentException(n.getNodeName() + " is defined more than once");
    }
  }
  this.slaves = new NodeList(nodes);
  updateComputerList();
  trimLabels();
  save();
}

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

public void setNodes(List<? extends Node> nodes) throws IOException {
  // make sure that all names are unique
  Set<String> names = new HashSet<String>();
  for (Node n : nodes) {
    if (!names.add(n.getNodeName())) {
      throw new IllegalArgumentException(n.getNodeName() + " is defined more than once");
    }
  }
  this.slaves = new NodeList(nodes);
  updateComputerList();
  trimLabels();
  save();
}

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

public void setNodes(List<? extends Node> nodes) throws IOException {
  // make sure that all names are unique
  Set<String> names = new HashSet<String>();
  for (Node n : nodes) {
    if (!names.add(n.getNodeName())) {
      throw new IllegalArgumentException(n.getNodeName() + " is defined more than once");
    }
  }
  this.slaves = new NodeList(nodes);
  updateComputerList();
  trimLabels();
  save();
}

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

updateComputerList();

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

updateComputerList();

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

updateComputerList();

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

updateComputerList();

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

updateComputerList();
if (result) {
  rsp.sendRedirect(req.getContextPath() + '/');  // go to the top page

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

updateComputerList();
if (result) {
  rsp.sendRedirect(req.getContextPath() + '/');  // go to the top page

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

updateComputerList();
if (result) {
  rsp.sendRedirect(req.getContextPath() + '/');  // go to the top page

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

updateComputerList();
if (result) {
  rsp.sendRedirect(req.getContextPath() + '/');  // go to the top page

相关文章

Hudson类方法