public static class MBeanAccessor.Invoke extends Object implements Remote.Function<MBeanServer,Map<String,Object>>, Serializable
MBeanServerConnection
.invoke
method.Modifier and Type | Field and 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.
|
Constructor and Description |
---|
Invoke()
Default constructor.
|
Invoke(MBeanAccessor.QueryBuilder.ParsedQuery query,
String sOperationName,
Object[] aoArguments,
String[] asSignature)
Create an Invoke object.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
apply(MBeanServer mBeanServer) |
protected Object |
invokeOperation(MBeanServer mBeanServer,
String sObjectName)
Invoke the operation on the MBean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
protected MBeanAccessor.QueryBuilder.ParsedQuery m_query
protected String m_sOperationName
protected Object[] m_arguments
protected String[] m_signature
public Invoke()
public Invoke(MBeanAccessor.QueryBuilder.ParsedQuery query, String sOperationName, Object[] aoArguments, String[] asSignature)
query
- the MBean querysOperationName
- the name of the operation to be invokedaoArguments
- the arguments to the operationasSignature
- the signature of the operationpublic Map<String,Object> apply(MBeanServer mBeanServer)
protected Object invokeOperation(MBeanServer mBeanServer, String sObjectName) throws InstanceNotFoundException
mBeanServer
- the MBeanServer to be usedsObjectName
- the ObjectName of the MBeanInstanceNotFoundException