Class PlatformInfo


  • public class PlatformInfo
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PlatformInfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void logDetails​(org.slf4j.Logger log)
      Essential information about the runtime environment.
      static void logDetails​(org.slf4j.Logger log, java.lang.String prefix)
      Essential information about the runtime environment
      static void logDetailsVerbose​(org.slf4j.Logger log)  
      static void logDetailsVerbose​(org.slf4j.Logger log, java.lang.String prefix)  
      static void main​(java.lang.String... args)  
      static java.lang.String strNum10​(long x)
      Create a human-friendly string for a number based on Kilo/Mega/Giga/Tera (powers of 10)
      static java.lang.String strNum2​(long x)
      Create a human-friendly string for a number based on Kibi/Mebi/Gibi/Tebi (powers of 2)
      • Methods inherited from class java.lang.Object

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

      • PlatformInfo

        public PlatformInfo()
    • Method Detail

      • main

        public static void main​(java.lang.String... args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • logDetails

        public static void logDetails​(org.slf4j.Logger log)
        Essential information about the runtime environment.
      • logDetails

        public static void logDetails​(org.slf4j.Logger log,
                                      java.lang.String prefix)
        Essential information about the runtime environment
        Parameters:
        log -
        prefix - String to add at the start of the log message.
      • logDetailsVerbose

        public static void logDetailsVerbose​(org.slf4j.Logger log)
      • logDetailsVerbose

        public static void logDetailsVerbose​(org.slf4j.Logger log,
                                             java.lang.String prefix)
      • strNum10

        public static java.lang.String strNum10​(long x)
        Create a human-friendly string for a number based on Kilo/Mega/Giga/Tera (powers of 10)
      • strNum2

        public static java.lang.String strNum2​(long x)
        Create a human-friendly string for a number based on Kibi/Mebi/Gibi/Tebi (powers of 2)