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 java.lang.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(javax.management.MBeanServerConnection jmxConnection, java.util.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  javax.management.AttributeList getMBeanAttributes(javax.management.ObjectInstance obj, java.util.Set attrView)
          Retrieve the specified attributes of the mbean
protected  javax.management.AttributeList getMBeanAttributes(javax.management.ObjectName objName, java.util.Set attrView)
          Retrieve the specified attributes of the mbean
protected  java.util.List getMBeanAttributesCollection(java.util.Collection result)
          Retrieve the specified attributes of the mbean
 java.util.List query(java.util.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 java.lang.String KEY_OBJECT_NAME_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

MBeansAttributeQueryFilter

public MBeansAttributeQueryFilter(javax.management.MBeanServerConnection jmxConnection,
                                  java.util.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 java.util.List query(java.util.List queries)
                     throws java.lang.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:
java.lang.Exception

getMBeanAttributesCollection

protected java.util.List getMBeanAttributesCollection(java.util.Collection result)
                                               throws java.io.IOException,
                                                      javax.management.ReflectionException,
                                                      javax.management.InstanceNotFoundException,
                                                      java.lang.NoSuchMethodException,
                                                      javax.management.IntrospectionException
Retrieve the specified attributes of the mbean

Parameters:
result - - collection of ObjectInstances and/or ObjectNames
Returns:
List of AttributeList
Throws:
java.io.IOException
javax.management.ReflectionException
javax.management.InstanceNotFoundException
java.lang.NoSuchMethodException
javax.management.IntrospectionException

getMBeanAttributes

protected javax.management.AttributeList getMBeanAttributes(javax.management.ObjectInstance obj,
                                                            java.util.Set attrView)
                                                     throws javax.management.ReflectionException,
                                                            javax.management.InstanceNotFoundException,
                                                            java.io.IOException,
                                                            javax.management.IntrospectionException
Retrieve the specified attributes of the mbean

Parameters:
obj - - mbean ObjectInstance
attrView - - list of attributes to retrieve
Returns:
AttributeList for the mbean
Throws:
javax.management.ReflectionException
javax.management.InstanceNotFoundException
java.io.IOException
javax.management.IntrospectionException

getMBeanAttributes

protected javax.management.AttributeList getMBeanAttributes(javax.management.ObjectName objName,
                                                            java.util.Set attrView)
                                                     throws java.io.IOException,
                                                            javax.management.ReflectionException,
                                                            javax.management.InstanceNotFoundException,
                                                            javax.management.IntrospectionException
Retrieve the specified attributes of the mbean

Parameters:
objName - - mbean ObjectName
attrView - - list of attributes to retrieve
Returns:
AttributeList for the mbean
Throws:
java.io.IOException
javax.management.ReflectionException
javax.management.InstanceNotFoundException
javax.management.IntrospectionException


Copyright © 2005-2012. All Rights Reserved.