Package org.snmp4j.agent.mo.jmx

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


  private void addJvmManagementMibInstrumentaton()
  {
    try
    {
      MBeanServerConnection server = ManagementFactory.getPlatformMBeanServer();
      MBeanAttributeMOScalarSupport scalarSupport = new MBeanAttributeMOScalarSupport(server);
      JMXDefaultMOFactory jmxFactory = new JMXDefaultMOFactory(server, scalarSupport);

      createMO(jmxFactory);
     
      scalarSupport.addAll(CONNECTOR_MANAGER, CONNECTOR_MANAGER_ATTR);
      scalarSupport.addAll(SERVER, SERVER_ATTR);
         
      server.addNotificationListener(JMX_EVENT_LOGGER, this, null, JMX_EVENT_LOGGER);
         
    }
    catch (Exception e)
View Full Code Here

TOP

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

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.