hudson.model.AbstractProject.getAppointedNode()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(75)

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

AbstractProject.getAppointedNode介绍

[英]Returns AppointedNode. Returned value is not null.
[中]返回指定的节点。返回值不为空。

代码示例

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

/**
 * Gets whether this project is using the advanced affinity chooser UI.
 *
 * @return true - advanced chooser, false - simple textfield.
 */
public boolean isAdvancedAffinityChooser() {
  //For newly created project advanced chooser is not used.
  //Set value to false in order to avoid NullPointerException
  return getAppointedNode() != null && getAppointedNode().getAdvancedAffinityChooser();
}

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

/**
 * If this project is configured to be always built on this node, return
 * that {@link Node}. Otherwise null.
 */
public Label getAssignedLabel() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabel();
}

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

/**
 * If this project is configured to be always built on this node,
 * return that {@link Node}. Otherwise null.
 */
public Label getAssignedLabel() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabel();
}

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

/**
 * Gets the textual representation of the assigned label as it was entered
 * by the user.
 */
public String getAssignedLabelString() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabelString();
}

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

/**
 * Gets whether this project is using the advanced affinity chooser UI.
 *
 * @return true - advanced chooser, false - simple textfield.
 */
public boolean isAdvancedAffinityChooser() {
  //For newly created project advanced chooser is not used.
  //Set value to false in order to avoid NullPointerException
  return getAppointedNode() != null && getAppointedNode().getAdvancedAffinityChooser();
}

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

/**
 * If this project is configured to be always built on this node,
 * return that {@link Node}. Otherwise null.
 */
public Label getAssignedLabel() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabel();
}

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

/**
 * Gets the textual representation of the assigned label as it was entered by the user.
 */
public String getAssignedLabelString() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabelString();
}

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

/**
 * If this project is configured to be always built on this node, return
 * that {@link Node}. Otherwise null.
 */
public Label getAssignedLabel() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabel();
}

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

/**
 * Gets whether this project is using the advanced affinity chooser UI.
 *
 * @return true - advanced chooser, false - simple textfield.
 */
public boolean isAdvancedAffinityChooser() {
  //For newly created project advanced chooser is not used.
  //Set value to false in order to avoid NullPointerException
  return getAppointedNode() != null && getAppointedNode().getAdvancedAffinityChooser();
}

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

/**
 * Gets the textual representation of the assigned label as it was entered
 * by the user.
 */
public String getAssignedLabelString() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabelString();
}

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

/**
 * Gets whether this project is using the advanced affinity chooser UI.
 *
 * @return true - advanced chooser, false - simple textfield.
 */
public boolean isAdvancedAffinityChooser() {
  //For newly created project advanced chooser is not used.
  //Set value to false in order to avoid NullPointerException
  return getAppointedNode() != null && getAppointedNode().getAdvancedAffinityChooser();
}

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

/**
 * Gets the textual representation of the assigned label as it was entered by the user.
 */
public String getAssignedLabelString() {
  return getAppointedNode() == null ? null : getAppointedNode().getAssignedLabelString();
}

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

/**
 * Sets the assigned label.
 * @param label node label.
 *
 * @throws java.io.IOException exception.
 */
public void setAssignedLabel(Label label) throws IOException {
  AppointedNode node = getAppointedNode();
  if(node == null){
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAssignedLabel(label);
  save();
}

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

/**
 * Sets whether this project is using the advanced affinity chooser UI.
 *
 * @param b true - advanced chooser, false - otherwise
 * @throws java.io.IOException exception.
 */
public void setAdvancedAffinityChooser(boolean b) throws IOException {
  AppointedNode node = getAppointedNode();
  if (node == null) {
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAdvancedAffinityChooser(b);
  save();
}

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

/**
 * Sets whether this project is using the advanced affinity chooser UI.
 *
 * @param b true - advanced chooser, false - otherwise
 * @throws java.io.IOException exception.
 */
public void setAdvancedAffinityChooser(boolean b) throws IOException {
  AppointedNode node = getAppointedNode();
  if(node == null){
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAdvancedAffinityChooser(b);
  save();
}

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

/**
 * Sets the assigned label.
 * @param label node label.
 *
 * @throws java.io.IOException exception.
 */
public void setAssignedLabel(Label label) throws IOException {
  AppointedNode node = getAppointedNode();
  if(node == null){
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAssignedLabel(label);
  save();
}

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

/**
 * Sets the assigned label.
 *
 * @param label node label.
 *
 * @throws java.io.IOException exception.
 */
public void setAssignedLabel(Label label) throws IOException {
  AppointedNode node = getAppointedNode();
  if (node == null) {
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAssignedLabel(label);
  save();
}

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

/**
 * Sets whether this project is using the advanced affinity chooser UI.
 *
 * @param b true - advanced chooser, false - otherwise
 * @throws java.io.IOException exception.
 */
public void setAdvancedAffinityChooser(boolean b) throws IOException {
  AppointedNode node = getAppointedNode();
  if(node == null){
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAdvancedAffinityChooser(b);
  save();
}

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

/**
 * Sets whether this project is using the advanced affinity chooser UI.
 *
 * @param b true - advanced chooser, false - otherwise
 * @throws java.io.IOException exception.
 */
public void setAdvancedAffinityChooser(boolean b) throws IOException {
  AppointedNode node = getAppointedNode();
  if (node == null) {
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAdvancedAffinityChooser(b);
  save();
}

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

/**
 * Sets the assigned label.
 *
 * @param label node label.
 *
 * @throws java.io.IOException exception.
 */
public void setAssignedLabel(Label label) throws IOException {
  AppointedNode node = getAppointedNode();
  if (node == null) {
    node = new AppointedNode();
    setAppointedNode(node);
  }
  node.setAssignedLabel(label);
  save();
}

相关文章

微信公众号

最新文章

更多

AbstractProject类方法