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

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

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

Node.getClockDifference介绍

[英]Estimates the clock difference with this slave.
[中]估计此从机的时钟差。

代码示例

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

  1. public static String toHtml(Node d) {
  2. try {
  3. if(d==null) return FAILED_HTML;
  4. return d.getClockDifference().toHtml();
  5. } catch (IOException e) {
  6. return FAILED_HTML;
  7. } catch (InterruptedException e) {
  8. return FAILED_HTML;
  9. }
  10. }

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

  1. protected ClockDifference monitor(Computer c) throws IOException, InterruptedException {
  2. Node n = c.getNode();
  3. if(n==null) return null;
  4. return n.getClockDifference();
  5. }

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

  1. protected ClockDifference monitor(Computer c) throws IOException, InterruptedException {
  2. Node n = c.getNode();
  3. if(n==null) return null;
  4. return n.getClockDifference();
  5. }

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

  1. protected ClockDifference monitor(Computer c) throws IOException, InterruptedException {
  2. Node n = c.getNode();
  3. if(n==null) return null;
  4. return n.getClockDifference();
  5. }

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

  1. public static String toHtml(Node d) {
  2. try {
  3. if(d==null) return FAILED_HTML;
  4. return d.getClockDifference().toHtml();
  5. } catch (IOException e) {
  6. return FAILED_HTML;
  7. } catch (InterruptedException e) {
  8. return FAILED_HTML;
  9. }
  10. }

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

  1. protected ClockDifference monitor(Computer c) throws IOException, InterruptedException {
  2. Node n = c.getNode();
  3. if (n == null) {
  4. return null;
  5. }
  6. return n.getClockDifference();
  7. }

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

  1. public static String toHtml(Node d) {
  2. try {
  3. if(d==null) return FAILED_HTML;
  4. return d.getClockDifference().toHtml();
  5. } catch (IOException e) {
  6. return FAILED_HTML;
  7. } catch (InterruptedException e) {
  8. return FAILED_HTML;
  9. }
  10. }

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

  1. public static String toHtml(Node d) {
  2. try {
  3. if(d==null) return FAILED_HTML;
  4. return d.getClockDifference().toHtml();
  5. } catch (IOException e) {
  6. return FAILED_HTML;
  7. } catch (InterruptedException e) {
  8. return FAILED_HTML;
  9. }
  10. }

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

  1. public static String toHtml(Node d) {
  2. try {
  3. if(d==null) return FAILED_HTML;
  4. return d.getClockDifference().toHtml();
  5. } catch (IOException e) {
  6. return FAILED_HTML;
  7. } catch (InterruptedException e) {
  8. return FAILED_HTML;
  9. }
  10. }

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

  1. public static String toHtml(Node d) {
  2. try {
  3. if (d == null) {
  4. return FAILED_HTML;
  5. }
  6. return d.getClockDifference().toHtml();
  7. } catch (IOException e) {
  8. return FAILED_HTML;
  9. } catch (InterruptedException e) {
  10. return FAILED_HTML;
  11. }
  12. }

相关文章