Class MBeansAttributeQueryFilter
java.lang.Object
org.apache.activemq.console.filter.AbstractQueryFilter
org.apache.activemq.console.filter.MBeansAttributeQueryFilter
- All Implemented Interfaces:
QueryFilter
-
Field Summary
FieldsFields inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
nextFields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER -
Constructor Summary
ConstructorsConstructorDescriptionMBeansAttributeQueryFilter(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
Modifier and TypeMethodDescriptionprotected AttributeListgetMBeanAttributes(ObjectInstance obj, Set attrView) Retrieve the specified attributes of the mbeanprotected AttributeListgetMBeanAttributes(ObjectName objName, Set attrView) Retrieve the specified attributes of the mbeanprotected ListRetrieve the specified attributes of the mbeanFilter the query by retrieving the attributes specified, this will modify the collection to a list of AttributeListMethods inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
query
-
Field Details
-
KEY_OBJECT_NAME_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
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 Details
-
query
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:
IOExceptionReflectionExceptionInstanceNotFoundExceptionNoSuchMethodExceptionIntrospectionException
-
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:
ReflectionExceptionInstanceNotFoundExceptionIOExceptionIntrospectionException
-
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:
IOExceptionReflectionExceptionInstanceNotFoundExceptionIntrospectionException
-