Package hudson.util

Class ClockDifference


@ExportedBean public final class ClockDifference extends Object
Represents a clock difference. Immutable.
Kohsuke Kawaguchi
  • Field Details

    • diff

      @Exported public final long diff
      The difference in milliseconds. Positive value means the agent is behind the master, negative value means the agent is ahead of the master.
    • ZERO

      public static final ClockDifference ZERO
  • Constructor Details

    • ClockDifference

      public ClockDifference(long value)
  • Method Details

    • isDangerous

      public boolean isDangerous()
      Returns true if the difference is big enough to be considered dangerous.
    • abs

      public long abs()
      Gets the absolute value of diff.
    • toString

      public String toString()
      Gets the clock difference in HTML string.
      toString in class Object
    • toHtml

      public String toHtml()
    • toHtml

      public static String toHtml(Node d)
    • toHtml

      public static String toHtml(ClockDifference d)
      Gets the clock difference in HTML string. This version handles null ClockDifference.