jvmMemManagerIndexSupport));
ObjectName onameJvmMem =
new ObjectName(ManagementFactory.MEMORY_MXBEAN_NAME);
notificationSupport.add(JvmManagementMib.oidJvmLowMemoryPoolUsageNotif,
new MBeanNotificationInfo(jvmLowMemoryPoolUsageNotif,
new JMXAttributeNotificationIndexSupport(
new TypedAttribute("poolName", String.class),
jvmMemManagerIndexSupport)));
try {
server.addNotificationListener(onameJvmMem,
notificationSupport, null,
JvmManagementMib.
oidJvmLowMemoryPoolUsageNotif);
}
catch (Exception ex) {
ex.printStackTrace();
}
notificationSupport.add(JvmManagementMib.oidJvmLowMemoryPoolCollectNotif,
new MBeanNotificationInfo(jvmLowMemoryPoolCollectNotif,
new JMXAttributeNotificationIndexSupport(
new TypedAttribute("poolName", String.class),
jvmMemManagerIndexSupport)));
try {
server.addNotificationListener(onameJvmMem,