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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_OBJECT_NAME_ATTRIBUTE
public static final java.lang.String KEY_OBJECT_NAME_ATTRIBUTE
- See Also:
- Constant Field Values
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 extractnext
- - the next query filter
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 ObjectInstanceattrView
- - 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 ObjectNameattrView
- - 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-2016. All Rights Reserved.