Class NativeMemoryEventObject

java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.nativememory.impl.NativeMemoryEventObject
All Implemented Interfaces:
BaseEvent, NativeMemoryEvent

public class NativeMemoryEventObject extends Object implements NativeMemoryEvent
  • Constructor Details

    • NativeMemoryEventObject

      public NativeMemoryEventObject(long eventTime, long processPhysical, long processVirtual, long processPrivate, long freePhysicalMemory, long totalPhysicalMemory)
  • Method Details

    • getEventTime

      public long getEventTime()
      Specified by:
      getEventTime in interface BaseEvent
      Returns:
      the time the event took place in milliseconds since epoch
    • getProcessPhysical

      public long getProcessPhysical()
      Description copied from interface: NativeMemoryEvent
      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".
      Specified by:
      getProcessPhysical in interface NativeMemoryEvent
      Returns:
      The process physical memory (bytes)
    • getProcessVirtual

      public long getProcessVirtual()
      Description copied from interface: NativeMemoryEvent
      Gets the total process address space in use.
      Specified by:
      getProcessVirtual in interface NativeMemoryEvent
      Returns:
      The process virtual memory currently set (bytes)
    • getProcessPrivate

      public long getProcessPrivate()
      Description copied from interface: NativeMemoryEvent
      Gets the amount of memory that is used exclusively by the monitored process. This memory is not shared with other processes on the system.
      Specified by:
      getProcessPrivate in interface NativeMemoryEvent
      Returns:
      The process private memory currently in use (bytes)
    • getFreePhysicalMemory

      public long getFreePhysicalMemory()
      Description copied from interface: NativeMemoryEvent
      Gets the amount of physical memory (RAM) that is free on the monitored system.
      Specified by:
      getFreePhysicalMemory in interface NativeMemoryEvent
      Returns:
      How much free memory there currently is (bytes)
    • getTotalPhysicalMemory

      public long getTotalPhysicalMemory()
      Description copied from interface: NativeMemoryEvent
      Gets the total amount of installed physical memory.
      Specified by:
      getTotalPhysicalMemory in interface NativeMemoryEvent
      Returns:
      The current amount of installed memory (bytes)