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 the
MBeanServerConnection
.getAttributes
method.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Provide a way to disable management over rest assumption that we want storage mbean attributes when processing a back tier cache.protected Filter
<MBeanAttributeInfo> MBean Attribute filter.protected MBeanAccessor.QueryBuilder.ParsedQuery
The query used to reduce the MBeans. -
Constructor Summary
ConstructorDescriptionDefault constructor.Create a GetAttributes object.GetAttributes
(MBeanAccessor.QueryBuilder.ParsedQuery query, Filter<MBeanAttributeInfo> filter, boolean fAddStorageMBeanAttributes) Create a GetAttributes object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addMBeanAttributes
(ObjectName oObjName, Map<String, Object> mapAttributes, MBeanServer mBeanServer, Filter<MBeanAttributeInfo> filter) Add attributes of an MBean to a Map.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 Details
-
m_query
The query used to reduce the MBeans. -
m_filter
MBean Attribute filter. -
m_fAddStorageMBeanAttributes
protected boolean m_fAddStorageMBeanAttributesProvide a way to disable management over rest assumption that we want storage mbean attributes when processing a back tier cache.
-
-
Constructor Details
-
GetAttributes
public GetAttributes()Default constructor. -
GetAttributes
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 Details
-
apply
-
addMBeanAttributes
protected void addMBeanAttributes(ObjectName oObjName, Map<String, Object> mapAttributes, MBeanServer mBeanServer, Filter<MBeanAttributeInfo> filter) throws ExceptionAdd 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
-