public class MBeansAttributeQueryFilter extends AbstractQueryFilter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_OBJECT_NAME_ATTRIBUTE |
nextQUERY_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
|
querypublic 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.Exceptionprotected 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.IOExceptionjavax.management.ReflectionExceptionjavax.management.InstanceNotFoundExceptionjava.lang.NoSuchMethodExceptionjavax.management.IntrospectionExceptionprotected 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.ReflectionExceptionjavax.management.InstanceNotFoundExceptionjava.io.IOExceptionjavax.management.IntrospectionExceptionprotected 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.IOExceptionjavax.management.ReflectionExceptionjavax.management.InstanceNotFoundExceptionjavax.management.IntrospectionExceptionCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.