org.apache.activemq.console.filter
Class MBeansAttributeQueryFilter
java.lang.Object
org.apache.activemq.console.filter.AbstractQueryFilter
org.apache.activemq.console.filter.MBeansAttributeQueryFilter
- All Implemented Interfaces:
- QueryFilter
public class MBeansAttributeQueryFilter
- extends AbstractQueryFilter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_OBJECT_NAME_ATTRIBUTE
public static final String KEY_OBJECT_NAME_ATTRIBUTE
- See Also:
- Constant Field Values
MBeansAttributeQueryFilter
public MBeansAttributeQueryFilter(MBeanServerConnection jmxConnection,
Set attribView,
MBeansObjectNameQueryFilter next)
- Create an mbean attributes query filter that is able to select specific
mbean attributes based on the object name to get.
- Parameters:
jmxConnection
- - JMX connection to use.attribView
- - the attributes to extractnext
- - the next query filter
query
public List query(List queries)
throws Exception
- Filter the query by retrieving the attributes specified, this will modify
the collection to a list of AttributeList
- Parameters:
queries
- - query list
- Returns:
- List of AttributeList, which includes the ObjectName, which has a
key of MBeansAttributeQueryFilter.KEY_OBJECT_NAME_ATTRIBUTE
- Throws:
Exception
getMBeanAttributesCollection
protected List getMBeanAttributesCollection(Collection result)
throws IOException,
ReflectionException,
InstanceNotFoundException,
NoSuchMethodException,
IntrospectionException
- Retrieve the specified attributes of the mbean
- Parameters:
result
- - collection of ObjectInstances and/or ObjectNames
- Returns:
- List of AttributeList
- Throws:
IOException
ReflectionException
InstanceNotFoundException
NoSuchMethodException
IntrospectionException
getMBeanAttributes
protected AttributeList getMBeanAttributes(ObjectInstance obj,
Set attrView)
throws ReflectionException,
InstanceNotFoundException,
IOException,
IntrospectionException
- Retrieve the specified attributes of the mbean
- Parameters:
obj
- - mbean ObjectInstanceattrView
- - list of attributes to retrieve
- Returns:
- AttributeList for the mbean
- Throws:
ReflectionException
InstanceNotFoundException
IOException
IntrospectionException
getMBeanAttributes
protected AttributeList getMBeanAttributes(ObjectName objName,
Set attrView)
throws IOException,
ReflectionException,
InstanceNotFoundException,
IntrospectionException
- Retrieve the specified attributes of the mbean
- Parameters:
objName
- - mbean ObjectNameattrView
- - list of attributes to retrieve
- Returns:
- AttributeList for the mbean
- Throws:
IOException
ReflectionException
InstanceNotFoundException
IntrospectionException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.