Interface OperatingSystemStatistics

All Known Implementing Classes:
DefaultOperatingSystemStatistics

public interface OperatingSystemStatistics
Statistics of a specific OperatingSystem.
Author:
kimchy
  • Method Details

    • isNA

      boolean isNA()
      Returns true if the statistics are not available.
    • getTimestamp

      long getTimestamp()
      Returns the timestamp when the statistics were take.
    • getAdminTimestamp

      long getAdminTimestamp()
      Returns a timestamp that is in sync with where the admin API is running. Can return -1 if the clocks have are not sync yet.
    • getDetails

      Returns the operating system details.
    • getTimeline

      Returns the timeline (from newest to oldest) history statistics, including this one.
    • getPrevious

      Returns the previous statistics taken. Returns null if this is the fist one.
    • getFreeSwapSpaceSizeInBytes

      long getFreeSwapSpaceSizeInBytes()
    • getFreeSwapSpaceSizeInMB

      double getFreeSwapSpaceSizeInMB()
    • getFreeSwapSpaceSizeInGB

      double getFreeSwapSpaceSizeInGB()
    • getSwapSpaceUsedPerc

      double getSwapSpaceUsedPerc()
      Returns the percentage used of swap space out of the total swap space.
    • getFreePhysicalMemorySizeInBytes

      long getFreePhysicalMemorySizeInBytes()
    • getFreePhysicalMemorySizeInMB

      double getFreePhysicalMemorySizeInMB()
    • getFreePhysicalMemorySizeInGB

      double getFreePhysicalMemorySizeInGB()
    • getActualFreePhysicalMemorySizeInBytes

      @Deprecated long getActualFreePhysicalMemorySizeInBytes()
      Deprecated.
      Since:
      14.5.0 Use getFreePhysicalMemorySizeInBytes()
    • getActualFreePhysicalMemorySizeInMB

      double getActualFreePhysicalMemorySizeInMB()
    • getActualFreePhysicalMemorySizeInGB

      double getActualFreePhysicalMemorySizeInGB()
    • getPhysicalMemoryUsedPerc

      double getPhysicalMemoryUsedPerc()
      Returns the percentage used of physical memory out of the total physical memory space. Uses the total free memory e.g. e.g. Linux plus cached.
    • getActualPhysicalMemoryUsedPerc

      double getActualPhysicalMemoryUsedPerc()
      Returns the percentage used of the actual physical memory out of the total physical memory.
    • getCpuPerc

      double getCpuPerc()
      Returns the combined cpu perc (User + Sys + Nice + Wait)
    • getCpuPercFormatted

      String getCpuPercFormatted()
    • getActualMemoryUsed

      long getActualMemoryUsed()
      Returns:
      Actual Memory Used, in bytes
      Since:
      10.1
    • getNetworkStats

      Returns the network statistics per network device.