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 the
MBeanServerConnection.invoke
method.- Since:
- 12.2.1.4.0
- Author:
- sr/hr
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object[]The arguments to the operation.protected MBeanAccessor.QueryBuilder.ParsedQueryThe query used to reduce the MBeans.protected String[]The signature of the operation.protected StringThe the name of the operation to be invoked. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(MBeanServer mBeanServer) protected ObjectinvokeOperation(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, waitMethods inherited from interface com.tangosol.util.function.Remote.Function
andThen, compose
-
Field Details
-
m_query
The query used to reduce the MBeans. -
m_sOperationName
The the name of the operation to be invoked. -
m_arguments
The arguments to the operation. -
m_signature
The signature of the operation.
-
-
Constructor Details
-
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 Details
-
apply
-
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
-