hudson.model.Node.getNodeDescription()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(124)

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

Node.getNodeDescription介绍

[英]Human-readable description of this node.
[中]此节点的可读描述。

代码示例

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

  1. /**
  2. * Returns the {@link Node} description for this computer
  3. */
  4. @Restricted(DoNotUse.class)
  5. @Exported
  6. public @Nonnull String getDescription() {
  7. Node node = getNode();
  8. return (node != null) ? node.getNodeDescription() : null;
  9. }

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

  1. /**
  2. * Returns a human readable text that explains this label.
  3. */
  4. @Exported
  5. public String getDescription() {
  6. Set<Node> nodes = getNodes();
  7. if(nodes.isEmpty()) {
  8. Set<Cloud> clouds = getClouds();
  9. if(clouds.isEmpty())
  10. return Messages.Label_InvalidLabel();
  11. return Messages.Label_ProvisionedFrom(toString(clouds));
  12. }
  13. if(nodes.size()==1)
  14. return nodes.iterator().next().getNodeDescription();
  15. return Messages.Label_GroupOf(toString(nodes));
  16. }

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

  1. /**
  2. * Returns the {@link Node} description for this computer
  3. */
  4. @Restricted(DoNotUse.class)
  5. @Exported
  6. public @Nonnull String getDescription() {
  7. Node node = getNode();
  8. return (node != null) ? node.getNodeDescription() : null;
  9. }

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

  1. /**
  2. * Returns a human readable text that explains this label.
  3. */
  4. @Exported
  5. public String getDescription() {
  6. Set<Node> nodes = getNodes();
  7. if(nodes.isEmpty()) {
  8. Set<Cloud> clouds = getClouds();
  9. if(clouds.isEmpty())
  10. return Messages.Label_InvalidLabel();
  11. return Messages.Label_ProvisionedFrom(toString(clouds));
  12. }
  13. if(nodes.size()==1)
  14. return nodes.iterator().next().getNodeDescription();
  15. return Messages.Label_GroupOf(toString(nodes));
  16. }

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

  1. /**
  2. * Returns a human readable text that explains this label.
  3. */
  4. @Exported
  5. public String getDescription() {
  6. Set<Node> nodes = getNodes();
  7. if (nodes.isEmpty()) {
  8. Set<Cloud> clouds = getClouds();
  9. if (clouds.isEmpty()) {
  10. return Messages.Label_InvalidLabel();
  11. }
  12. return Messages.Label_ProvisionedFrom(toString(clouds));
  13. }
  14. if (nodes.size() == 1) {
  15. return nodes.iterator().next().getNodeDescription();
  16. }
  17. return Messages.Label_GroupOf(toString(nodes));
  18. }

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

  1. /**
  2. * Returns a human readable text that explains this label.
  3. */
  4. @Exported
  5. public String getDescription() {
  6. Set<Node> nodes = getNodes();
  7. if(nodes.isEmpty()) {
  8. Set<Cloud> clouds = getClouds();
  9. if(clouds.isEmpty())
  10. return Messages.Label_InvalidLabel();
  11. return Messages.Label_ProvisionedFrom(toString(clouds));
  12. }
  13. if(nodes.size()==1)
  14. return nodes.iterator().next().getNodeDescription();
  15. return Messages.Label_GroupOf(toString(nodes));
  16. }

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

  1. /**
  2. * Returns a human readable text that explains this label.
  3. */
  4. @Exported
  5. public String getDescription() {
  6. Set<Node> nodes = getNodes();
  7. if(nodes.isEmpty()) {
  8. Set<Cloud> clouds = getClouds();
  9. if(clouds.isEmpty())
  10. return Messages.Label_InvalidLabel();
  11. return Messages.Label_ProvisionedFrom(toString(clouds));
  12. }
  13. if(nodes.size()==1)
  14. return nodes.iterator().next().getNodeDescription();
  15. return Messages.Label_GroupOf(toString(nodes));
  16. }

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

  1. /**
  2. * Returns a human readable text that explains this label.
  3. */
  4. @Exported
  5. public String getDescription() {
  6. Set<Node> nodes = getNodes();
  7. if(nodes.isEmpty()) {
  8. Set<Cloud> clouds = getClouds();
  9. if(clouds.isEmpty())
  10. return Messages.Label_InvalidLabel();
  11. return Messages.Label_ProvisionedFrom(toString(clouds));
  12. }
  13. if(nodes.size()==1)
  14. return nodes.iterator().next().getNodeDescription();
  15. return Messages.Label_GroupOf(toString(nodes));
  16. }

代码示例来源:origin: org.hudsonci.plugins/rest-plugin-api

  1. public NodeDTO convert(final hudson.model.Node source) {
  2. assert source != null;
  3. log.trace("Converting: {}", source);
  4. NodeDTO target = new NodeDTO();
  5. target.setName(source.getNodeName());
  6. target.setDescription(source.getNodeDescription());
  7. target.setExecutors(source.getNumExecutors());
  8. target.setMode(convert(source.getMode()));
  9. // target.setConnected();
  10. // target.setOnline();
  11. // target.setOfflineCause();
  12. // target.setConnectTime();
  13. return target;
  14. }

代码示例来源:origin: openstack-infra/zmq-event-publisher

  1. Node node = computer.getNode();
  2. if (node != null) {
  3. buildState.setNodeDescription(node.getNodeDescription());

相关文章