Class SystemMonitoring

java.lang.Object
com.tenio.core.monitoring.system.SystemMonitoring

@ThreadSafe public final class SystemMonitoring extends Object
For showing the system information.
See Also:
  • Method Details

    • newInstance

      public static SystemMonitoring newInstance()
    • getCpuUsage

      public double getCpuUsage()
      Retrieves the CPU usage.
      Returns:
      the CPU usage in percentage
    • countRunningThreads

      public int countRunningThreads()
      Retrieves the number of running threads.
      Returns:
      the number of running threads
    • getTotalMemory

      public long getTotalMemory()
    • getFreeMemory

      public long getFreeMemory()
    • getUsedMemory

      public long getUsedMemory()