Examples of registerMBean()


Examples of org.apache.servicemix.jbi.management.ManagementContext.registerMBean()

        ComponentStats stats = new ComponentStats(component);
        componentStats.putIfAbsent(key, stats);
        // Register MBean
        ManagementContext context = container.getManagementContext();
        try {
            context.registerMBean(context.createObjectName(context.createObjectNameProps(stats, true)),
                    stats,
                    ComponentStatsMBean.class);
        } catch (Exception e) {
            LOG.info("Unable to register component statistics MBean: " + e.getMessage());
            if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.synapse.commons.jmx.MBeanRegistrar.registerMBean()

            new ConcurrentLinkedQueue<StatisticsRecord>();

    public StatisticsCollector() {
        MBeanRegistrar registrar = MBeanRegistrar.getInstance();
        synchronized (registrar) {
            registrar.registerMBean(new StatisticsView(this),
                    "StatisticsView", "StatisticsView");
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.tomcat.modules.config.DynamicMBeanProxy.registerMBean()

            mbean.setReal( proxy );
            if( name!=null ) {
                mbean.setName( "name=" + name );
            }

            mbean.registerMBean( domain );
           
            // Set mserver once
            if (mserver == null)
                mserver = mbean.getMBeanServer();
               
View Full Code Here

Examples of org.datanucleus.management.ManagementServer.registerMBean()

            ManagementServer mgntServer = nucleusContext.getJMXManager().getManagementServer();
            this.storeManagerRuntime = new StoreManagerRuntime();
            String mbeanName = mgmtMgr.getDomainName() + ":InstanceName=" + mgmtMgr.getInstanceName() +
                ",Type=" + ClassUtils.getClassNameForClass(storeManagerRuntime.getClass()) +
                ",Name=StoreManagerRuntime";
            mgntServer.registerMBean(this.storeManagerRuntime, mbeanName);
        }

        // Set up connection handling
        registerConnectionMgr();
        registerConnectionFactory();
View Full Code Here

Examples of org.datanucleus.management.ManagementServer.registerMBean()

            ManagementServer mgntServer = nucleusContext.getJMXManager().getManagementServer();
            queryRuntime = new QueryRuntime();
            String mbeanName = mgmtMgr.getDomainName() + ":InstanceName=" + mgmtMgr.getInstanceName() +
                ",Type=" + ClassUtils.getClassNameForClass(queryRuntime.getClass())+
                ",Name=QueryRuntime";
            mgntServer.registerMBean(this.queryRuntime, mbeanName);
        }

        initialiseQueryCaches();
    }
View Full Code Here

Examples of org.datanucleus.management.ManagementServer.registerMBean()

            ManagementServer mgmtServer = mgmtMgr.getManagementServer();
            connMgrRuntime = new ConnectionManagerRuntime();
            String mbeanName = mgmtMgr.getDomainName() + ":InstanceName=" + mgmtMgr.getInstanceName() +
                ",Type=" + ClassUtils.getClassNameForClass(connMgrRuntime.getClass()) +
                ",Name=ConnectionManagerRuntime";
            mgmtServer.registerMBean(connMgrRuntime, mbeanName);
        }
    }

    /**
     * Pool of managed connections keyed by poolKey objects.
View Full Code Here

Examples of org.jboss.arquillian.protocol.jmx.JMXTestRunner.registerMBean()

   @Test
   public void testJMXTestRunner() throws Throwable
   {
      MBeanServer mbeanServer = getMBeanServer();
      JMXTestRunner jmxTestRunner = new JMXTestRunner(null);
      ObjectName oname = jmxTestRunner.registerMBean(mbeanServer);
     
      try
      {
         JMXTestRunnerMBean testRunner = getMBeanProxy(mbeanServer, oname, JMXTestRunnerMBean.class);
         TestResult result = testRunner.runTestMethodLocal(DummyTestCase.class.getName(), "testMethod");
View Full Code Here

Examples of org.jboss.arquillian.protocol.jmx.test.JMXTestTestRunner.registerMBean()

      
       MBeanServer mbeanServer = getMBeanServer();
       JMXTestRunner jmxTestRunner = new JMXTestTestRunner(null);

       jmxTestRunner.setExposedTestRunnerForTest(new MockTestRunner());
       ObjectName oname = jmxTestRunner.registerMBean(mbeanServer);
      
       try
       {
          JMXMethodExecutor executor = new JMXMethodExecutor(mbeanServer, new TestCommandCallback(results));
         
View Full Code Here

Examples of org.jpox.management.ManagementServer.registerMBean()

            ManagementServer mgntServer = omfContext.getManagement().getManagementServer();
            this.storeManagerRuntime = new StoreManagerRuntime();
            String mbeanName = omfContext.getDomainName() + ":InstanceName=" + omfContext.getInstanceName() +
                ",Type=" + ClassUtils.getClassNameForClass(storeManagerRuntime.getClass()) +
                ",Name=StoreManagerRuntime";
            mgntServer.registerMBean(this.storeManagerRuntime, mbeanName);
        }

        // Factory for connections - transactional
        ConfigurationElement cfElem = omfContext.getPluginManager().getConfigurationElementForExtension(
            "org.jpox.store_connectionfactory",
View Full Code Here

Examples of org.jpox.management.ManagementServer.registerMBean()

            ManagementServer mgmtServer = this.omfContext.getManagement().getManagementServer();
            connMgrRuntime = new ConnectionManagerRuntime();
            String mbeanName = omfContext.getDomainName() + ":InstanceName=" + omfContext.getInstanceName() +
                ",Type=" + ClassUtils.getClassNameForClass(connMgrRuntime.getClass()) +
                ",Name=ConnectionManagerRuntime";
            mgmtServer.registerMBean(connMgrRuntime, mbeanName);
        }
    }

    /**
     * Pool of managed connections for an ObjectManager.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.