Class Uptime


  • @ThreadSafe
    public final class Uptime
    extends java.lang.Object
    Utility to query up time.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long DAY_MS  
      private static long HOUR_MS  
      private static long MINUTE_MS  
      private static java.util.regex.Pattern UPTIME_FORMAT_AIX  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Uptime()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long queryUpTime()
      Query uptime to get up time
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Uptime

        private Uptime()
    • Method Detail

      • queryUpTime

        public static long queryUpTime()
        Query uptime to get up time
        Returns:
        Up time in milliseconds