Package com.tangosol.net.management
Class MBeanAccessor.GetAttributes
- java.lang.Object
-
- com.tangosol.net.management.MBeanAccessor.GetAttributes
-
- All Implemented Interfaces:
Remote.Function<MBeanServer,Map<String,Map<String,Object>>>
,Serializable
,Function<MBeanServer,Map<String,Map<String,Object>>>
- Enclosing class:
- MBeanAccessor
public static class MBeanAccessor.GetAttributes extends Object implements Remote.Function<MBeanServer,Map<String,Map<String,Object>>>, Serializable
The Remote.Function for theMBeanServerConnection
.getAttributes method.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_fAddStorageMBeanAttributes
Provide a way to disable management over rest assumption that we want storage mbean attributes when processing a back tier cache.protected Filter<MBeanAttributeInfo>
m_filter
MBean Attribute filter.protected MBeanAccessor.QueryBuilder.ParsedQuery
m_query
The query used to reduce the MBeans.
-
Constructor Summary
Constructors Constructor Description GetAttributes()
Default constructor.GetAttributes(MBeanAccessor.QueryBuilder.ParsedQuery query)
Create a GetAttributes object.GetAttributes(MBeanAccessor.QueryBuilder.ParsedQuery query, Filter<MBeanAttributeInfo> filter, boolean fAddStorageMBeanAttributes)
Create a GetAttributes object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addMBeanAttributes(ObjectName oObjName, Map<String,Object> mapAttributes, MBeanServer mBeanServer, Filter<MBeanAttributeInfo> filter)
Add attributes of an MBean to a Map.Map<String,Map<String,Object>>
apply(MBeanServer mBeanServer)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.util.function.Remote.Function
andThen, compose
-
-
-
-
Field Detail
-
m_query
protected MBeanAccessor.QueryBuilder.ParsedQuery m_query
The query used to reduce the MBeans.
-
m_filter
protected Filter<MBeanAttributeInfo> m_filter
MBean Attribute filter.
-
m_fAddStorageMBeanAttributes
protected boolean m_fAddStorageMBeanAttributes
Provide a way to disable management over rest assumption that we want storage mbean attributes when processing a back tier cache.
-
-
Constructor Detail
-
GetAttributes
public GetAttributes()
Default constructor.
-
GetAttributes
public GetAttributes(MBeanAccessor.QueryBuilder.ParsedQuery query)
Create a GetAttributes object.- Parameters:
query
- the MBean query
-
GetAttributes
public GetAttributes(MBeanAccessor.QueryBuilder.ParsedQuery query, Filter<MBeanAttributeInfo> filter, boolean fAddStorageMBeanAttributes)
Create a GetAttributes object.- Parameters:
query
- the MBean queryfilter
- server side filter for attributes to returnfAddStorageMBeanAttributes
- when true, append Storage MBean attributes to a back tier cache mbean.
-
-
Method Detail
-
addMBeanAttributes
protected void addMBeanAttributes(ObjectName oObjName, Map<String,Object> mapAttributes, MBeanServer mBeanServer, Filter<MBeanAttributeInfo> filter) throws Exception
Add attributes of an MBean to a Map.- Parameters:
oObjName
- the attributes filtermapAttributes
- the response mapmBeanServer
- the MBeanServerfilter
- the MBeanAttributeInfo filter- Throws:
Exception
- if an error occurs
-
-