Class SystemInfo

java.lang.Object
org.serviceconnector.util.SystemInfo

public final class SystemInfo extends Object
SystemInfo holds and detects current system information.
Author:
JTraber
  • Constructor Details

    • SystemInfo

      public SystemInfo()
      Instantiates a new system info.
  • Method Details

    • getConfigFileName

      public static String getConfigFileName()
      Gets the config file name.
      Returns:
      the config file name
    • getscmpVersion

      public static String getscmpVersion()
      Gets the SCMP version.
      Returns:
      the SCMP version
    • setConfigFileName

      public static void setConfigFileName(String configFileName)
      Sets the config file name.
      Parameters:
      configFileName - the new config file name
    • getJavaVersion

      public static String getJavaVersion()
      Returns current used java version.
      Returns:
      javaVersion
    • getVmVersion

      public static String getVmVersion()
      Returns version of current used java virtual machine.
      Returns:
      vmVersion
    • getLocalHostId

      public static String getLocalHostId()
      Returns local host identification (hostname / IP).
      Returns:
      localHostId.
    • getOs

      public static String getOs()
      Returns current operating system.
      Returns:
      os
    • getOsPatchLevel

      public static String getOsPatchLevel()
      Returns operation system patch level.
      Returns:
      osPatchLevel
    • getCpuType

      public static String getCpuType()
      Returns CPU type.
      Returns:
      cpuType
    • getUserDir

      public static String getUserDir()
      Returns current user directory.
      Returns:
      userDir
    • getCountrySetting

      public static String getCountrySetting()
      Returns the current country setting.
      Returns:
      countrySetting
    • getUserTimezone

      public static String getUserTimezone()
      Returns the current user time zone.
      Returns:
      userTimezone
    • getUtcOffset

      public static int getUtcOffset()
      Returns the offset to universal time coordinated (UTC).
      Returns:
      utcOffset
    • isUseDST

      public static boolean isUseDST()
      Returns true if daylight saving (DST) time is used.
      Returns:
      useDST
    • getStartupDateTime

      public static Date getStartupDateTime()
      Returns startup date and time.
      Returns:
      startupDateTime
    • getAvailableProcessors

      public static int getAvailableProcessors()
      Returns the number of processors.
      Returns:
      numberOfProcessors
    • getMaxMemory

      public static long getMaxMemory()
      Gets the max memory.
      Returns:
      the max memory
    • getFreeMemory

      public static long getFreeMemory()
      Gets the free memory.
      Returns:
      the free memory
    • getTotalMemory

      public static long getTotalMemory()
      Gets the total memory.
      Returns:
      the total memory
    • getAvailableDiskSpace

      public static long getAvailableDiskSpace()
      Returns total free bytes on file system available in bytes.
      Returns:
      availDiskMemory
    • getThreadCount

      public static int getThreadCount()
      Gets the thread count.
      Returns:
      the thread count
    • getDaemonThreadCount

      public static int getDaemonThreadCount()
      Gets the daemon thread count.
      Returns:
      the daemon thread count
    • getPeakThreadCount

      public static int getPeakThreadCount()
      Gets the peak thread count.
      Returns:
      the peak thread count