org.apache.activemq.console.filter
Class MBeansAttributeQueryFilter

java.lang.Object
  extended by org.apache.activemq.console.filter.AbstractQueryFilter
      extended by org.apache.activemq.console.filter.MBeansAttributeQueryFilter
All Implemented Interfaces:
QueryFilter

public class MBeansAttributeQueryFilter
extends AbstractQueryFilter


Field Summary
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
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
protected  AttributeList getMBeanAttributes(ObjectInstance obj, Set attrView)
          Retrieve the specified attributes of the mbean
protected  AttributeList getMBeanAttributes(ObjectName objName, Set attrView)
          Retrieve the specified attributes of the mbean
protected  List getMBeanAttributesCollection(Collection result)
          Retrieve the specified attributes of the mbean
 List 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 extract
next - - 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 ObjectInstance
attrView - - 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 ObjectName
attrView - - list of attributes to retrieve
Returns:
AttributeList for the mbean
Throws:
IOException
ReflectionException
InstanceNotFoundException
IntrospectionException


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.