public class MBeansAttributeQueryFilter extends AbstractQueryFilter
Modifier and Type | Field and Description |
---|---|
static String |
KEY_OBJECT_NAME_ATTRIBUTE |
next
QUERY_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
|
query
public 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 listException
protected List getMBeanAttributesCollection(Collection result) throws IOException, ReflectionException, InstanceNotFoundException, NoSuchMethodException, IntrospectionException
result
- - collection of ObjectInstances and/or ObjectNamesIOException
ReflectionException
InstanceNotFoundException
NoSuchMethodException
IntrospectionException
protected AttributeList getMBeanAttributes(ObjectInstance obj, Set attrView) throws ReflectionException, InstanceNotFoundException, IOException, IntrospectionException
obj
- - mbean ObjectInstanceattrView
- - list of attributes to retrieveReflectionException
InstanceNotFoundException
IOException
IntrospectionException
protected AttributeList getMBeanAttributes(ObjectName objName, Set attrView) throws IOException, ReflectionException, InstanceNotFoundException, IntrospectionException
objName
- - mbean ObjectNameattrView
- - list of attributes to retrieveIOException
ReflectionException
InstanceNotFoundException
IntrospectionException
Copyright © 2005–2018 FuseSource, Corp.. All rights reserved.