issrg.pba.management.manager
Class MBeanServerConnectionUtility

java.lang.Object
  extended by issrg.pba.management.manager.MBeanServerConnectionUtility

public final class MBeanServerConnectionUtility
extends java.lang.Object

MBeanServerConnectionUtility only has class method that call standard MBeanServerConnection methods, and wraps any exceptions up in a PMException for use with Either the PERMIS agent as a standard PbaException or in the PERMIS manager to be displayed to the user.

The intention was to wrap more than just the "invoke" method, but the invoke method was the only one used.

Since:
0.1.2008.03.08
Author:
mfb4@kent.ac.uk

Method Summary
static java.lang.Object invoke(javax.management.MBeanServerConnection mBeanServerConnection, javax.management.ObjectName objectName, java.lang.String operation, java.lang.Object[] params, java.lang.String[] signature)
          invoke an operation (method).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public static java.lang.Object invoke(javax.management.MBeanServerConnection mBeanServerConnection,
                                      javax.management.ObjectName objectName,
                                      java.lang.String operation,
                                      java.lang.Object[] params,
                                      java.lang.String[] signature)
                               throws PMException
invoke an operation (method).

Parameters:
mBeanServerConnection - The MBean server to call the invoke method on
objectName - Object name used to identify an MBean
operation - string name of the operation (method) in the MBean
params - Object array of the parameter for the operation
signature - String array of parameter types for the operation
Returns:
The object returned by the operation, which represents the result of invoking the operation on the MBean specified.
Throws:
PMException - wrapping any exceptions that are thrown by the invoke method
Since:
0.1.2008.03.08
See Also:
(MBeanServerConnection, ObjectName, String, Object[], String[])