public class MBeansAttributeQueryFilter extends AbstractQueryFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_OBJECT_NAME_ATTRIBUTE |
next
QUERY_DELIMETER
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
query
public static final java.lang.String KEY_OBJECT_NAME_ATTRIBUTE
public MBeansAttributeQueryFilter(javax.management.MBeanServerConnection jmxConnection, java.util.Set attribView, MBeansObjectNameQueryFilter next)
jmxConnection
- - JMX connection to use.attribView
- - the attributes to extractnext
- - the next query filterpublic java.util.List query(java.util.List queries) throws java.lang.Exception
queries
- - query listjava.lang.Exception
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
result
- - collection of ObjectInstances and/or ObjectNamesjava.io.IOException
javax.management.ReflectionException
javax.management.InstanceNotFoundException
java.lang.NoSuchMethodException
javax.management.IntrospectionException
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
obj
- - mbean ObjectInstanceattrView
- - list of attributes to retrievejavax.management.ReflectionException
javax.management.InstanceNotFoundException
java.io.IOException
javax.management.IntrospectionException
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
objName
- - mbean ObjectNameattrView
- - list of attributes to retrievejava.io.IOException
javax.management.ReflectionException
javax.management.InstanceNotFoundException
javax.management.IntrospectionException
Copyright © 2005-2017. All Rights Reserved.