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

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

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

Launcher.getComputer介绍

[英]If this Launcher is encapsulating an execution on a specific Computer, return it.

Because of the way internal Hudson abstractions are set up (that is, Launcher only needs a VirtualChannel to do its job and isn't really required that the channel comes from an existing Computer), this method may not always the right Computer instance.
[中]如果此启动器正在封装特定计算机上的执行,请返回它。
由于内部Hudson抽象的设置方式(也就是说,Launcher只需要一个VirtualChannel来完成它的工作,而且实际上并不需要该通道来自现有的计算机),因此这种方法可能并不总是正确的计算机实例。

代码示例

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

  1. @Override
  2. public Computer getComputer() {
  3. return inner.getComputer();
  4. }

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

  1. @Override
  2. public Computer getComputer() {
  3. return inner.getComputer();
  4. }

代码示例来源:origin: openshift/jenkins-plugin

  1. computerEnv = computer.getEnvironment();
  2. } else {
  3. computer = launcher.getComputer();
  4. if (computer != null) {
  5. computerEnv = computer.getEnvironment();

代码示例来源:origin: openshift/jenkins-client-plugin

  1. } else {
  2. if (launcher != null)
  3. computer = launcher.getComputer();
  4. if (computer != null) {
  5. computerEnv = computer.getEnvironment();

相关文章