Package com.jitlogic.zorka.core.mbeans

Examples of com.jitlogic.zorka.core.mbeans.ZorkaMappedMBean


    }


    @Test
    public void testDiscoveryZorkaStats() throws Exception {
        ZorkaMappedMBean mbean = new ZorkaMappedMBean("test");
        MethodCallStatistics stats = new MethodCallStatistics();
        mbean.put("stats", stats);

        testMbs.registerMBean(mbean, new ObjectName("test:type=ZorkaStats"));

        stats.getMethodCallStatistic("A").logCall(4L);
        stats.getMethodCallStatistic("B").logCall(1L);
View Full Code Here


  private ZorkaMappedMBean bean;


  @Before
  public void setUp() throws Exception {
        bean = new ZorkaMappedMBean("test");
  }
View Full Code Here

     * @return mbean object
     */
    public ZorkaMappedMBean mbean(String mbs, String name, String desc) {
        // TODO wyrugować ręczne tworzenie mbeanów, zdefiniować jedną (wspólną) metodę do tego i używać jej
        try {
            ZorkaMappedMBean mbean = new ZorkaMappedMBean(desc);
            MBeanServer conn = (MBeanServer) mbsRegistry.lookup(mbs);
            if (conn == null) {
                throw new IllegalArgumentException("There is no mbean server named '" + mbs + "'");
            }

View Full Code Here

TOP

Related Classes of com.jitlogic.zorka.core.mbeans.ZorkaMappedMBean

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.