Class NativeMemoryEventObject
java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.nativememory.impl.NativeMemoryEventObject
- All Implemented Interfaces:
BaseEvent,NativeMemoryEvent
-
Constructor Summary
ConstructorsConstructorDescriptionNativeMemoryEventObject(long eventTime, long processPhysical, long processVirtual, long processPrivate, long freePhysicalMemory, long totalPhysicalMemory) -
Method Summary
Modifier and TypeMethodDescriptionlonglongGets the amount of physical memory (RAM) that is free on the monitored system.longGets the amount of physical memory (RAM) that is currently in use by the monitored process.longGets the amount of memory that is used exclusively by the monitored process.longGets the total process address space in use.longGets the total amount of installed physical memory.
-
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:
getEventTimein interfaceBaseEvent- Returns:
- the time the event took place in milliseconds since epoch
-
getProcessPhysical
public long getProcessPhysical()Description copied from interface:NativeMemoryEventGets 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:
getProcessPhysicalin interfaceNativeMemoryEvent- Returns:
- The process physical memory (bytes)
-
getProcessVirtual
public long getProcessVirtual()Description copied from interface:NativeMemoryEventGets the total process address space in use.- Specified by:
getProcessVirtualin interfaceNativeMemoryEvent- Returns:
- The process virtual memory currently set (bytes)
-
getProcessPrivate
public long getProcessPrivate()Description copied from interface:NativeMemoryEventGets 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:
getProcessPrivatein interfaceNativeMemoryEvent- Returns:
- The process private memory currently in use (bytes)
-
getFreePhysicalMemory
public long getFreePhysicalMemory()Description copied from interface:NativeMemoryEventGets the amount of physical memory (RAM) that is free on the monitored system.- Specified by:
getFreePhysicalMemoryin interfaceNativeMemoryEvent- Returns:
- How much free memory there currently is (bytes)
-
getTotalPhysicalMemory
public long getTotalPhysicalMemory()Description copied from interface:NativeMemoryEventGets the total amount of installed physical memory.- Specified by:
getTotalPhysicalMemoryin interfaceNativeMemoryEvent- Returns:
- The current amount of installed memory (bytes)
-