Interface NativeMemoryData

All Superinterfaces:
HealthCenterData, NotificationBroadcaster, NotificationEmitter
All Known Implementing Classes:
NativeMemoryDataImpl

public interface NativeMemoryData extends HealthCenterData
This class contains general information about the native memory usage of the process and the system that are being monitored.
  • Field Details

    • PHYSICALMEMORYDATA

      static final String PHYSICALMEMORYDATA
      Used to get only Physical Memory Data when comparing against NotificationListener.getUserData()
      See Also:
    • VIRTUALMEMORYDATA

      static final String VIRTUALMEMORYDATA
      Used to get only Virtual Memory Data when comparing against NotificationListener.getUserData()
      See Also:
    • PRIVATEMEMORYDATA

      static final String PRIVATEMEMORYDATA
      Used to get only Private Memory Data when comparing against NotificationListener.getUserData()
      See Also:
    • FREEPHYSICALMEMORYDATA

      static final String FREEPHYSICALMEMORYDATA
      Used to get only Free Physical Memory Data when comparing against NotificationListener.getUserData()
      See Also:
    • TOTALPHYSICALMEMORYDATA

      static final String TOTALPHYSICALMEMORYDATA
      Used to get only Total Physical Memory Data when comparing against NotificationListener.getUserData()
      See Also:
  • Method Details

    • getProcessPhysical

      MemoryData[] getProcessPhysical()
      Gets the amount of physical memory (RAM) that is currently in use by the monitored process. On some platforms, this memory is called "resident storage" or the "working set". NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of MemoryData of the process physical memory. This is all the data available over time and not just the most recent.
    • getProcessVirtual

      MemoryData[] getProcessVirtual()
      Gets the total process address space in use. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of MemoryData of the process virtual memory. This is all the data available over time and not just the most recent.
    • getProcessPrivate

      MemoryData[] getProcessPrivate()
      Gets the amount of memory that is used exclusively by the monitored process. This memory is not shared with other processes on the system. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of MemoryData of the process private memory in use. This is all the data available over time and not just the most recent.
    • getFreePhysicalMemory

      MemoryData[] getFreePhysicalMemory()
      Gets the amount of physical memory (RAM) that is free on the monitored system. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of MemoryData of how much free memory there is. This is all the data available over time and not just the most recent.
    • getTotalPhysicalMemory

      MemoryData[] getTotalPhysicalMemory()
      Gets the total amount of installed physical memory. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
      Returns:
      an array of MemoryData of the amount of installed memory. This is all the data available over time and not just the most recent.
    • getNativeMemoryRoot

      NativeMemoryCategory getNativeMemoryRoot()
      Gets the object at the root of the hierarchy of native memory categories. The highest-level category is JRE. For more information, see the NativeMemoryCategory class.
      Returns:
      the object at the root of the native memory hierarchy or null if no data has been retrieved.
    • getMinFreePhysicalMemory

      long getMinFreePhysicalMemory()
      Gets the minimum amount of memory that is free on the monitored system in bytes.
      Returns:
      minimum memory in bytes
    • getMaxFreePhysicalMemory

      long getMaxFreePhysicalMemory()
      Gets the maximum amount of memory that is free on the monitored system in bytes.
      Returns:
      maximum memory in bytes
    • getMeanFreePhysicalMemory

      double getMeanFreePhysicalMemory()
      Gets the mean amount of memory that is free on the monitored system in bytes.
      Returns:
      mean memory in bytes
    • getMinProcessPhysicalMemory

      long getMinProcessPhysicalMemory()
      Gets the minimum amount of physical memory in use by the monitored process in bytes.
      Returns:
      minimum memory in bytes
    • getMaxProcessPhysicalMemory

      long getMaxProcessPhysicalMemory()
      Gets the maximum amount of physical memory in use by the monitored process in bytes.
      Returns:
      maximum memory in bytes
    • getMeanProcessPhysicalMemory

      double getMeanProcessPhysicalMemory()
      Gets the mean amount of physical memory in use by the monitored process in bytes.
      Returns:
      mean memory in bytes
    • getMinProcessPrivateMemory

      long getMinProcessPrivateMemory()
      Gets the minimum amount of memory used exclusively by the monitored process, in bytes.
      Returns:
      minimum memory in bytes
    • getMaxProcessPrivateMemory

      long getMaxProcessPrivateMemory()
      Gets the maximum amount of memory used exclusively by the monitored process, in bytes.
      Returns:
      maximum memory in bytes
    • getMeanProcessPrivateMemory

      double getMeanProcessPrivateMemory()
      Gets the mean amount of memory used exclusively by the monitored process, in bytes.
      Returns:
      mean memory in bytes
    • getMinProcessVirtualMemory

      long getMinProcessVirtualMemory()
      Gets the minimum amount of total process address space used, in bytes.
      Returns:
      minimum memory in bytes
    • getMaxProcessVirtualMemory

      long getMaxProcessVirtualMemory()
      Gets the maximum amount of total process address space used, in bytes.
      Returns:
      maximum memory in bytes
    • getMeanProcessVirtualMemory

      double getMeanProcessVirtualMemory()
      Gets the mean amount of total process address space used, in bytes.
      Returns:
      mean memory in bytes
    • addNativeMemoryListener

      void addNativeMemoryListener(NativeMemoryEventListener listener)
      Add a listener for notification of when Native Memory events occur
      Parameters:
      implementation - of the NativeMemoryEventListener class
    • addNativeMemoryCategoryListener

      void addNativeMemoryCategoryListener(NativeMemoryCategoryEventListener listener)
      Add a listener for notification of when Native Memory Category events occur
      Parameters:
      implementation - of the addNativeMemoryCategoryListener class
    • removeNativeMemoryListener

      void removeNativeMemoryListener(NativeMemoryEventListener listener)
      Remove one of the registered listeners.
      Parameters:
      implementation - of the NativeMemoryEventListener class
    • removeNativeMemoryCategoryListener

      void removeNativeMemoryCategoryListener(NativeMemoryCategoryEventListener listener)
      Remove one of the registered listeners.
      Parameters:
      implementation - of the NativeMemoryCategoryEventListener class