uk.co.gidley.jmxmonitor.monitoring
Class MultiNamedMBeanTest
java.lang.Object
uk.co.gidley.jmxmonitor.monitoring.BaseMonitoringTest
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiNamedMBeanTest
public MultiNamedMBeanTest()
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.