org.jmx4odp.j4oNet
Class TestExample
java.lang.Object
org.jmx4odp.j4oNet.TestExample
- All Implemented Interfaces:
- javax.management.MBeanRegistration, TestExampleMBean
public class TestExample
- extends java.lang.Object
- implements javax.management.MBeanRegistration, TestExampleMBean
This is a test MBean. Is uses the J4ONet's JsRegistryManager to locate MBeans.
- Author:
- Lucas McGregor
|
Constructor Summary |
TestExample()
Creates a new instance of TestExample |
|
Method Summary |
java.lang.String |
findMBeanByClass(java.lang.String className)
using the name of the class provided, it will use
the J4ONet's JsRegistryManager to locate all MBeans
in the network that are either of or inherited from
this class. |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean booleanParam)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer mBeanServer,
javax.management.ObjectName objName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestExample
public TestExample()
- Creates a new instance of TestExample
findMBeanByClass
public java.lang.String findMBeanByClass(java.lang.String className)
throws java.lang.Exception
- using the name of the class provided, it will use
the J4ONet's JsRegistryManager to locate all MBeans
in the network that are either of or inherited from
this class.
- Specified by:
findMBeanByClass in interface TestExampleMBean
- Throws:
java.lang.Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister in interface javax.management.MBeanRegistration
postRegister
public void postRegister(java.lang.Boolean booleanParam)
- Specified by:
postRegister in interface javax.management.MBeanRegistration
preDeregister
public void preDeregister()
throws java.lang.Exception
- Specified by:
preDeregister in interface javax.management.MBeanRegistration
- Throws:
java.lang.Exception
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer mBeanServer,
javax.management.ObjectName objName)
throws java.lang.Exception
- Specified by:
preRegister in interface javax.management.MBeanRegistration
- Throws:
java.lang.Exception