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
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_OBJECT_NAME_ATTRIBUTE
-
Fields inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
next
-
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributeList
getMBeanAttributes(ObjectInstance obj, Set attrView)
Retrieve the specified attributes of the mbeanprotected AttributeList
getMBeanAttributes(ObjectName objName, Set attrView)
Retrieve the specified attributes of the mbeanprotected List
getMBeanAttributesCollection(Collection result)
Retrieve the specified attributes of the mbeanList
query(List queries)
Filter the query by retrieving the attributes specified, this will modify the collection to a list of AttributeList-
Methods inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
query
-
-
-
-
Field Detail
-
KEY_OBJECT_NAME_ATTRIBUTE
public static final String KEY_OBJECT_NAME_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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
-
-