| Modifier and Type | Method and Description |
|---|---|
static String |
createErrorMessage(MBeanServerConnection connection,
ObjectName object,
String operation,
Object[] parameters,
String[] signature)
Creates an error message, explaining why the supplied operation could not
be executed.
|
static Object |
invoke(MBeanServerConnection connection,
ObjectName object,
String operation,
Object[] parameters,
String[] signature)
Invokes the supplied operation against the supplied object with the
supplied parameters.
|
public static Object invoke(MBeanServerConnection connection, ObjectName object, String operation, Object[] parameters, String[] signature) throws MBeanException
connection - The MBeanServerConnection.object - The object on which to invoke the supplied operation.operation - The operation to invoke.parameters - The parameters the supplied operation accepts.signature - The signature of the supplied parameters.MBeanException - When an error occurs during the invocation of the
supplied operation against the supplied object.NullPointerException - When of the supplied parameters is null.IllegalArgumentException - When the supplied operation is empty or
when the supplied parameters and signature contain a different number of
elements.public static String createErrorMessage(MBeanServerConnection connection, ObjectName object, String operation, Object[] parameters, String[] signature)
connection - The MBeanServerConnection.object - The object on which to invoke the supplied operation.operation - The operation to invoke.parameters - The parameters the supplied operation accepts.signature - The signature of the supplied parameters.Copyright © 2008–2017. All rights reserved.