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
 MBeanNode findBean(ObjectName objectName)
          Find a single MBean matching the object name.
 MBeanNode[] findBeans(ObjectName objectName)
          Find all MBeans matching the object name.
 

Method Detail

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:
IntrospectionException
InstanceNotFoundException
ReflectionException
IOException

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:
IntrospectionException
InstanceNotFoundException
ReflectionException
IOException