uk.co.gidley.jmxmonitor.monitoring
Class MultiNamedMBeanTest

java.lang.Object
  extended by uk.co.gidley.jmxmonitor.monitoring.BaseMonitoringTest
      extended by uk.co.gidley.jmxmonitor.monitoring.MultiNamedMBeanTest

public class MultiNamedMBeanTest
extends BaseMonitoringTest

Created by IntelliJ IDEA. User: ben Date: Jan 8, 2010 Time: 4:38:11 PM


Nested Class Summary
 class MultiNamedMBeanTest.Ping
           
static interface MultiNamedMBeanTest.PingMBean
           
 
Constructor Summary
MultiNamedMBeanTest()
           
 
Method Summary
 String getConfiguration()
           
 void registerTestMBeans()
           
 void TestMultiNamedMBean()
          This test tests handling MBeans like C3PO's they are called things like com.mchange.v2.c3p0:type=PooledDataSource[2rvxty863z22nb16dadw4|62a34b91] AND the bit in [] changes every JVM restart.
 int waitForEvents()
           
 
Methods inherited from class uk.co.gidley.jmxmonitor.monitoring.BaseMonitoringTest
setup, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiNamedMBeanTest

public MultiNamedMBeanTest()
Method Detail

TestMultiNamedMBean

public void TestMultiNamedMBean()
                         throws InterruptedException
This test tests handling MBeans like C3PO's they are called things like com.mchange.v2.c3p0:type=PooledDataSource[2rvxty863z22nb16dadw4|62a34b91] AND the bit in [] changes every JVM restart.

You therefore have to use a wildcard in the objectname to find them.

Throws:
InterruptedException

getConfiguration

public String getConfiguration()
Specified by:
getConfiguration in class BaseMonitoringTest

waitForEvents

public int waitForEvents()
Specified by:
waitForEvents in class BaseMonitoringTest

registerTestMBeans

public void registerTestMBeans()
                        throws MalformedObjectNameException,
                               MBeanRegistrationException,
                               InstanceAlreadyExistsException,
                               NotCompliantMBeanException
Specified by:
registerTestMBeans in class BaseMonitoringTest
Throws:
MalformedObjectNameException
MBeanRegistrationException
InstanceAlreadyExistsException
NotCompliantMBeanException


Copyright © 2009-2010. All Rights Reserved.