Package com.tangosol.net.management
Class MBeanAccessor.Invoke
- java.lang.Object
-
- com.tangosol.net.management.MBeanAccessor.Invoke
-
- All Implemented Interfaces:
Remote.Function<MBeanServer,Map<String,Object>>
,Serializable
,Function<MBeanServer,Map<String,Object>>
- Enclosing class:
- MBeanAccessor
public static class MBeanAccessor.Invoke extends Object implements Remote.Function<MBeanServer,Map<String,Object>>, Serializable
The Remote.Function for theMBeanServerConnection
.invoke method.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object[]
m_arguments
The arguments to the operation.protected MBeanAccessor.QueryBuilder.ParsedQuery
m_query
The query used to reduce the MBeans.protected String[]
m_signature
The signature of the operation.protected String
m_sOperationName
The the name of the operation to be invoked.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
apply(MBeanServer mBeanServer)
protected Object
invokeOperation(MBeanServer mBeanServer, String sObjectName)
Invoke the operation on the MBean.-
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_sOperationName
protected String m_sOperationName
The the name of the operation to be invoked.
-
m_arguments
protected Object[] m_arguments
The arguments to the operation.
-
m_signature
protected String[] m_signature
The signature of the operation.
-
-
Constructor Detail
-
Invoke
public Invoke()
Default constructor.
-
Invoke
public Invoke(MBeanAccessor.QueryBuilder.ParsedQuery query, String sOperationName, Object[] aoArguments, String[] asSignature)
Create an Invoke object.- Parameters:
query
- the MBean querysOperationName
- the name of the operation to be invokedaoArguments
- the arguments to the operationasSignature
- the signature of the operation
-
-
Method Detail
-
apply
public Map<String,Object> apply(MBeanServer mBeanServer)
-
invokeOperation
protected Object invokeOperation(MBeanServer mBeanServer, String sObjectName) throws InstanceNotFoundException
Invoke the operation on the MBean.- Parameters:
mBeanServer
- the MBeanServer to be usedsObjectName
- the ObjectName of the MBean- Returns:
- the response of the operation
- Throws:
InstanceNotFoundException
-
-