Package org.oddjob.jmx.general
Class MBeanCacheMap
java.lang.Object
org.oddjob.jmx.general.MBeanCacheMap
- All Implemented Interfaces:
MBeanCache
A Simple Map based implementation of a
MBeanCache.- Author:
- rob
-
Constructor Summary
ConstructorsConstructorDescriptionMBeanCacheMap(MBeanServerConnection mBeanServer, ClassResolver classResolver) -
Method Summary
Modifier and TypeMethodDescriptionfindBean(ObjectName objectName) Find a single MBean matching the object name.findBeans(ObjectName objectName) Find all MBeans matching the object name.
-
Constructor Details
-
MBeanCacheMap
-
-
Method Details
-
findBean
public MBeanNode findBean(ObjectName objectName) throws IntrospectionException, InstanceNotFoundException, ReflectionException, IOException Description copied from interface:MBeanCacheFind a single MBean matching the object name. If the object name is a wild card there must be only one match.- Specified by:
findBeanin interfaceMBeanCache- Parameters:
objectName-- Returns:
- A single node. Never null.
- Throws:
IntrospectionExceptionInstanceNotFoundExceptionReflectionExceptionIOException
-
findBeans
public MBeanNode[] findBeans(ObjectName objectName) throws IntrospectionException, InstanceNotFoundException, ReflectionException, IOException Description copied from interface:MBeanCacheFind all MBeans matching the object name. The object name is expected to be a wild card.- Specified by:
findBeansin interfaceMBeanCache- Parameters:
objectName-- Returns:
- An array of 0 or more nodes.
- Throws:
IntrospectionExceptionInstanceNotFoundExceptionReflectionExceptionIOException
-