Class Who


  • @ThreadSafe
    public final class Who
    extends java.lang.Object
    Utility to query logged in users.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.time.format.DateTimeFormatter BOOT_DATE_FORMAT_AIX  
      private static java.util.regex.Pattern BOOT_FORMAT_AIX  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Who()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long queryBootTime()
      Query who -b to get boot time
      • Methods inherited from class java.lang.Object

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

      • BOOT_FORMAT_AIX

        private static final java.util.regex.Pattern BOOT_FORMAT_AIX
      • BOOT_DATE_FORMAT_AIX

        private static final java.time.format.DateTimeFormatter BOOT_DATE_FORMAT_AIX
    • Constructor Detail

      • Who

        private Who()
    • Method Detail

      • queryBootTime

        public static long queryBootTime()
        Query who -b to get boot time
        Returns:
        Boot time in milliseconds since the epoch