org.oddjob.jmx.general
Class MBeanCacheMap

java.lang.Object
  extended by org.oddjob.jmx.general.MBeanCacheMap
All Implemented Interfaces:
MBeanCache

public class MBeanCacheMap
extends Object
implements MBeanCache

A Simple Map based implementation of a MBeanCache.

Author:
rob

Constructor Summary
MBeanCacheMap(MBeanServerConnection mBeanServer, ClassResolver classResolver)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanCacheMap

public MBeanCacheMap(MBeanServerConnection mBeanServer,
                     ClassResolver classResolver)
Method Detail

findBean

public MBeanNode findBean(ObjectName objectName)
                   throws IntrospectionException,
                          InstanceNotFoundException,
                          ReflectionException,
                          IOException
Description copied from interface: MBeanCache
Find a single MBean matching the object name. If the object name is a wild card there must be only one match.

Specified by:
findBean in interface MBeanCache
Returns:
A single node. Never null.
Throws:
IntrospectionException
InstanceNotFoundException
ReflectionException
IOException

findBeans

public MBeanNode[] findBeans(ObjectName objectName)
                      throws IntrospectionException,
                             InstanceNotFoundException,
                             ReflectionException,
                             IOException
Description copied from interface: MBeanCache
Find all MBeans matching the object name. The object name is expected to be a wild card.

Specified by:
findBeans in interface MBeanCache
Returns:
An array of 0 or more nodes.
Throws:
IntrospectionException
InstanceNotFoundException
ReflectionException
IOException