Package org.snmp4j.agent.mo.jmx

Examples of org.snmp4j.agent.mo.jmx.MBeanNotificationInfo


                                        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,
View Full Code Here

TOP

Related Classes of org.snmp4j.agent.mo.jmx.MBeanNotificationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.