Class Diagnostics

java.lang.Object
org.variantsync.diffdetective.util.Diagnostics

public class Diagnostics extends Object
Human readable diagnostic information bundle.

This is a singleton.

Adapted from https://stackoverflow.com/a/8973770/5410757

  • Field Details Link icon

    • INSTANCE Link icon

      public static final org.variantsync.functjonal.Lazy<Diagnostics> INSTANCE
    • runtime Link icon

      private final Runtime runtime
  • Constructor Details Link icon

    • Diagnostics Link icon

      private Diagnostics()
  • Method Details Link icon

    • info Link icon

      public String info()
      Human readable information about current memory usage and the running machine.
    • osName Link icon

      public String osName()
    • osVersion Link icon

      public String osVersion()
    • osArch Link icon

      public String osArch()
      Returns the architecture of the running system.
    • getNumberOfAvailableProcessors Link icon

      public int getNumberOfAvailableProcessors()
    • B2GB Link icon

      private static double B2GB(long bytes)
      Convert Bytes into Gigabytes.
    • memInfo Link icon

      public String memInfo()
      Human readable information about the current memory usage.
    • osInfo Link icon

      public String osInfo()
      Human readable information about the running machine.