Package org.oddjob.jmx.general
Interface MBeanCache
- All Known Implementing Classes:
MBeanCacheMap
public interface MBeanCache
Something capable of creating and caching
MBeanNodes.- Author:
- rob
-
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.
-
Method Details
-
findBean
MBeanNode findBean(ObjectName objectName) throws IntrospectionException, InstanceNotFoundException, ReflectionException, IOException Find a single MBean matching the object name. If the object name is a wild card there must be only one match.- Parameters:
objectName-- Returns:
- A single node. Never null.
- Throws:
IntrospectionExceptionInstanceNotFoundExceptionReflectionExceptionIOException
-
findBeans
MBeanNode[] findBeans(ObjectName objectName) throws IntrospectionException, InstanceNotFoundException, ReflectionException, IOException Find all MBeans matching the object name. The object name is expected to be a wild card.- Parameters:
objectName-- Returns:
- An array of 0 or more nodes.
- Throws:
IntrospectionExceptionInstanceNotFoundExceptionReflectionExceptionIOException
-