org.objectweb.jonas.jmx.vjadmin
Class JonasManagementRepr
java.lang.Object
|
+--org.objectweb.jonas.jmx.vjadmin.JonasManagementRepr
- public class JonasManagementRepr
- extends java.lang.Object
A set of static methods used in all servlets
Method Summary |
static java.lang.Object |
getAttribute(javax.management.ObjectName on,
java.lang.String attribute)
|
static java.lang.Object |
invoke(javax.management.ObjectName on,
java.lang.String operation,
java.lang.Object[] param,
java.lang.String[] signature)
|
static boolean |
isRegistered(javax.management.ObjectName on)
|
static java.util.Set |
queryNames(javax.management.ObjectName on)
|
static void |
setAttribute(javax.management.ObjectName on,
java.lang.String attribute,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JonasManagementRepr
public JonasManagementRepr()
isRegistered
public static boolean isRegistered(javax.management.ObjectName on)
- Returns:
- True if the MBean is already registered in the MBean server, false otherwise or if an exception is catched.
getAttribute
public static java.lang.Object getAttribute(javax.management.ObjectName on,
java.lang.String attribute)
throws ManagementException
- Parameters:
on
- The ObjectName of the MBean from which the attribute is to be retrieved.attribute
- A String specifying the name of the attribute to be retrieve.- Returns:
- The value of the attribute.
setAttribute
public static void setAttribute(javax.management.ObjectName on,
java.lang.String attribute,
java.lang.Object value)
throws ManagementException
- Parameters:
on
- The ObjectName of the MBean within which the attribute is to be set.attribute
- A String specifying the name of the attribute to be retrieve.value
- The value to set to the attribute.
invoke
public static java.lang.Object invoke(javax.management.ObjectName on,
java.lang.String operation,
java.lang.Object[] param,
java.lang.String[] signature)
throws ManagementException
- Parameters:
on
-
queryNames
public static java.util.Set queryNames(javax.management.ObjectName on)
throws ManagementException
- Returns:
- A set containing the ObjectNames for the MBeans selected.