public class MBeansAttributeQueryFilter extends AbstractQueryFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_OBJECT_NAME_ATTRIBUTE |
nextQUERY_DELIMETER| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
querypublic static final String KEY_OBJECT_NAME_ATTRIBUTE
public MBeansAttributeQueryFilter(MBeanServerConnection jmxConnection, Set attribView, MBeansObjectNameQueryFilter next)
jmxConnection - - JMX connection to use.attribView - - the attributes to extractnext - - the next query filterpublic List query(List queries) throws Exception
queries - - query listExceptionprotected List getMBeanAttributesCollection(Collection result) throws IOException, ReflectionException, InstanceNotFoundException, NoSuchMethodException, IntrospectionException
result - - collection of ObjectInstances and/or ObjectNamesIOExceptionReflectionExceptionInstanceNotFoundExceptionNoSuchMethodExceptionIntrospectionExceptionprotected AttributeList getMBeanAttributes(ObjectInstance obj, Set attrView) throws ReflectionException, InstanceNotFoundException, IOException, IntrospectionException
obj - - mbean ObjectInstanceattrView - - list of attributes to retrieveReflectionExceptionInstanceNotFoundExceptionIOExceptionIntrospectionExceptionprotected AttributeList getMBeanAttributes(ObjectName objName, Set attrView) throws IOException, ReflectionException, InstanceNotFoundException, IntrospectionException
objName - - mbean ObjectNameattrView - - list of attributes to retrieveIOExceptionReflectionExceptionInstanceNotFoundExceptionIntrospectionExceptionCopyright © 2005–2018 FuseSource, Corp.. All rights reserved.