Class NativeMemoryDataImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterDataImpl
com.ibm.java.diagnostics.healthcenter.api.nativememory.impl.NativeMemoryDataImpl
- All Implemented Interfaces:
HealthCenterData,NativeMemoryData,NotificationBroadcaster,NotificationEmitter
-
Field Summary
Fields inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterDataImpl
DEFAULT_NOTIFICATION, UNSETFields inherited from interface com.ibm.java.diagnostics.healthcenter.api.nativememory.NativeMemoryData
FREEPHYSICALMEMORYDATA, PHYSICALMEMORYDATA, PRIVATEMEMORYDATA, TOTALPHYSICALMEMORYDATA, VIRTUALMEMORYDATA -
Constructor Summary
ConstructorsConstructorDescriptionNativeMemoryDataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener for notification of when Native Memory Category events occurvoidAdd a listener for notification of when Native Memory events occurGets the amount of physical memory (RAM) that is free on the monitored system.longGets the maximum amount of memory that is free on the monitored system in bytes.longGets the maximum amount of physical memory in use by the monitored process in bytes.longGets the maximum amount of memory used exclusively by the monitored process, in bytes.longGets the maximum amount of total process address space used, in bytes.doubleGets the mean amount of memory that is free on the monitored system in bytes.doubleGets the mean amount of physical memory in use by the monitored process in bytes.doubleGets the mean amount of memory used exclusively by the monitored process, in bytes.doubleGets the mean amount of total process address space used, in bytes.longGets the minimum amount of memory that is free on the monitored system in bytes.longGets the minimum amount of physical memory in use by the monitored process in bytes.longGets the minimum amount of memory used exclusively by the monitored process, in bytes.longGets the minimum amount of total process address space used, in bytes.Gets the object at the root of the hierarchy of native memory categories.Gets the amount of physical memory (RAM) that is currently in use by the monitored process.Gets the amount of memory that is used exclusively by the monitored process.Gets the total process address space in use.protected Stringprotected StringGets the total amount of installed physical memory.voidRemove one of the registered listeners.voidRemove one of the registered listeners.voidStarts a thread which checks for changes in the data every 2000 milliseconds and sends notifications if an update has occurred.voidstartNotifying(long delay) Starts a thread which checks for changes in the data and sends notifications if an update has occurred.Methods inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterDataImpl
convertSummaryToDouble, convertSummaryToInt, convertSummaryToLong, extractRate, findAllRecommendations, findRecommendations, getAllRecommendations, getCriticalRecommendations, getEventData, getHealthyRecommendations, getInformationalRecommendations, getJvmData, getMaxData, getMeanData, getMinData, getWarningRecommendations, setJvmData, stripPercentSymbolMethods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ibm.java.diagnostics.healthcenter.api.HealthCenterData
getAllRecommendations, getCriticalRecommendations, getHealthyRecommendations, getInformationalRecommendations, getWarningRecommendationsMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Constructor Details
-
NativeMemoryDataImpl
public NativeMemoryDataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data)
-
-
Method Details
-
getProcessPhysical
Description copied from interface:NativeMemoryDataGets 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- Specified by:
getProcessPhysicalin interfaceNativeMemoryData- Returns:
- an array of MemoryData of the process physical memory. This is all the data available over time and not just the most recent.
-
getFreePhysicalMemory
Description copied from interface:NativeMemoryDataGets 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- Specified by:
getFreePhysicalMemoryin interfaceNativeMemoryData- 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.
-
getProcessPrivate
Description copied from interface:NativeMemoryDataGets 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- Specified by:
getProcessPrivatein interfaceNativeMemoryData- 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.
-
getTotalPhysicalMemory
Description copied from interface:NativeMemoryDataGets 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- Specified by:
getTotalPhysicalMemoryin interfaceNativeMemoryData- 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.
-
getProcessVirtual
Description copied from interface:NativeMemoryDataGets 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- Specified by:
getProcessVirtualin interfaceNativeMemoryData- Returns:
- an array of MemoryData of the process virtual memory. This is all the data available over time and not just the most recent.
-
getNativeMemoryRoot
Description copied from interface:NativeMemoryDataGets 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.- Specified by:
getNativeMemoryRootin interfaceNativeMemoryData- Returns:
- the object at the root of the native memory hierarchy or null if no data has been retrieved.
-
getRecommendationLabel
- Specified by:
getRecommendationLabelin classHealthCenterDataImpl
-
getSubsystemLabel
- Specified by:
getSubsystemLabelin classHealthCenterDataImpl
-
startNotifying
public void startNotifying()Description copied from interface:HealthCenterDataStarts a thread which checks for changes in the data every 2000 milliseconds and sends notifications if an update has occurred. To handle these notifications, aNotificationListenerneeds to be added to the object the thread is being started from.- Specified by:
startNotifyingin interfaceHealthCenterData
-
startNotifying
public void startNotifying(long delay) Description copied from interface:HealthCenterDataStarts a thread which checks for changes in the data and sends notifications if an update has occurred. To handle these notifications, aNotificationListenerneeds to be added to the object the thread is being started from.- Specified by:
startNotifyingin interfaceHealthCenterData- Parameters:
delay- The number of milliseconds between each update. The default is 2000 milliseconds and anything below this will not be accepted.
-
getMaxFreePhysicalMemory
public long getMaxFreePhysicalMemory()Description copied from interface:NativeMemoryDataGets the maximum amount of memory that is free on the monitored system in bytes.- Specified by:
getMaxFreePhysicalMemoryin interfaceNativeMemoryData- Returns:
- maximum memory in bytes
-
getMeanFreePhysicalMemory
public double getMeanFreePhysicalMemory()Description copied from interface:NativeMemoryDataGets the mean amount of memory that is free on the monitored system in bytes.- Specified by:
getMeanFreePhysicalMemoryin interfaceNativeMemoryData- Returns:
- mean memory in bytes
-
getMinFreePhysicalMemory
public long getMinFreePhysicalMemory()Description copied from interface:NativeMemoryDataGets the minimum amount of memory that is free on the monitored system in bytes.- Specified by:
getMinFreePhysicalMemoryin interfaceNativeMemoryData- Returns:
- minimum memory in bytes
-
getMaxProcessPhysicalMemory
public long getMaxProcessPhysicalMemory()Description copied from interface:NativeMemoryDataGets the maximum amount of physical memory in use by the monitored process in bytes.- Specified by:
getMaxProcessPhysicalMemoryin interfaceNativeMemoryData- Returns:
- maximum memory in bytes
-
getMeanProcessPhysicalMemory
public double getMeanProcessPhysicalMemory()Description copied from interface:NativeMemoryDataGets the mean amount of physical memory in use by the monitored process in bytes.- Specified by:
getMeanProcessPhysicalMemoryin interfaceNativeMemoryData- Returns:
- mean memory in bytes
-
getMinProcessPhysicalMemory
public long getMinProcessPhysicalMemory()Description copied from interface:NativeMemoryDataGets the minimum amount of physical memory in use by the monitored process in bytes.- Specified by:
getMinProcessPhysicalMemoryin interfaceNativeMemoryData- Returns:
- minimum memory in bytes
-
getMaxProcessPrivateMemory
public long getMaxProcessPrivateMemory()Description copied from interface:NativeMemoryDataGets the maximum amount of memory used exclusively by the monitored process, in bytes.- Specified by:
getMaxProcessPrivateMemoryin interfaceNativeMemoryData- Returns:
- maximum memory in bytes
-
getMeanProcessPrivateMemory
public double getMeanProcessPrivateMemory()Description copied from interface:NativeMemoryDataGets the mean amount of memory used exclusively by the monitored process, in bytes.- Specified by:
getMeanProcessPrivateMemoryin interfaceNativeMemoryData- Returns:
- mean memory in bytes
-
getMinProcessPrivateMemory
public long getMinProcessPrivateMemory()Description copied from interface:NativeMemoryDataGets the minimum amount of memory used exclusively by the monitored process, in bytes.- Specified by:
getMinProcessPrivateMemoryin interfaceNativeMemoryData- Returns:
- minimum memory in bytes
-
getMaxProcessVirtualMemory
public long getMaxProcessVirtualMemory()Description copied from interface:NativeMemoryDataGets the maximum amount of total process address space used, in bytes.- Specified by:
getMaxProcessVirtualMemoryin interfaceNativeMemoryData- Returns:
- maximum memory in bytes
-
getMeanProcessVirtualMemory
public double getMeanProcessVirtualMemory()Description copied from interface:NativeMemoryDataGets the mean amount of total process address space used, in bytes.- Specified by:
getMeanProcessVirtualMemoryin interfaceNativeMemoryData- Returns:
- mean memory in bytes
-
getMinProcessVirtualMemory
public long getMinProcessVirtualMemory()Description copied from interface:NativeMemoryDataGets the minimum amount of total process address space used, in bytes.- Specified by:
getMinProcessVirtualMemoryin interfaceNativeMemoryData- Returns:
- minimum memory in bytes
-
addNativeMemoryListener
Description copied from interface:NativeMemoryDataAdd a listener for notification of when Native Memory events occur- Specified by:
addNativeMemoryListenerin interfaceNativeMemoryData
-
removeNativeMemoryListener
Description copied from interface:NativeMemoryDataRemove one of the registered listeners.- Specified by:
removeNativeMemoryListenerin interfaceNativeMemoryData
-
removeNativeMemoryCategoryListener
Description copied from interface:NativeMemoryDataRemove one of the registered listeners.- Specified by:
removeNativeMemoryCategoryListenerin interfaceNativeMemoryData
-
addNativeMemoryCategoryListener
Description copied from interface:NativeMemoryDataAdd a listener for notification of when Native Memory Category events occur- Specified by:
addNativeMemoryCategoryListenerin interfaceNativeMemoryData
-