Class UptimeInfo

java.lang.Object
io.jenkins.plugins.specsmonitor.UptimeInfo
All Implemented Interfaces:
Serializable

public class UptimeInfo extends Object implements Serializable
How long the machine of a node has been running.
See Also:
  • Constructor Details

    • UptimeInfo

      public UptimeInfo(long seconds)
      Parameters:
      seconds - uptime in seconds, or a negative value if unknown
  • Method Details

    • getSeconds

      public long getSeconds()
    • getDisplay

      public String getDisplay()
      Compact uptime, e.g. 3d 4h, 5h 12m, 7m, or N/A.
    • getTooltip

      public String getTooltip()
      Full uptime, e.g. Up for 3 days, 4 hours, 12 minutes. Empty if unknown.
    • toString

      public String toString()
      Overrides:
      toString in class Object