|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.webapp.jonasadmin.JonasManagementRepr
public class JonasManagementRepr
Wrapper class allowing to apply a management operations (getAttribute, setAttribute, invoke, etc.) on the corresponding to managed server's connection. The managed server is identified by a name (serverName parameter). The corresponding connection is kept in the serverConnections table.
Constructor Summary | |
---|---|
JonasManagementRepr()
|
Method Summary | |
---|---|
static Object |
getAttribute(ObjectName on,
String attribute,
String serverName)
Gets the value of a specific attribute of a named MBean. |
static AttributeList |
getAttributes(ObjectName on,
String[] attributes,
String serverName)
Gets the values of several attributes of a named MBean. |
static MBeanInfo |
getMBeanInfo(ObjectName on,
String serverName)
|
static Object |
invoke(ObjectName on,
String operation,
Object[] param,
String[] signature,
String serverName)
Invokes an operation on an MBean. |
static boolean |
isRegistered(ObjectName on,
String serverName)
|
static Set |
queryNames(ObjectName on,
String serverName)
|
static void |
setAttribute(ObjectName on,
String attribute,
Object value,
String serverName)
Sets the value of a specific attribute of a named MBean. |
static void |
setAttributes(ObjectName on,
AttributeList attributes,
String serverName)
|
static void |
unregisterMBean(ObjectName on,
String serverName)
Unregisters an MBean from the managed server's MBean server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JonasManagementRepr()
Method Detail |
---|
public static boolean isRegistered(ObjectName on, String serverName) throws ManagementException
on
- ObjectName of the MBean we are looking forserverName
- The server name
ManagementException
- management operation failedpublic static Object getAttribute(ObjectName on, String attribute, String serverName) throws ManagementException
on
- The ObjectName of the MBean.attribute
- A String specifying the name of the attribute to be retrieved.serverName
- The server name
ManagementException
- management operation failedpublic static AttributeList getAttributes(ObjectName on, String[] attributes, String serverName) throws ManagementException
on
- The ObjectName of the MBean.attributes
- Array of attribute names to be retrieved.serverName
- The server name
ManagementException
- management operation failedpublic static void setAttribute(ObjectName on, String attribute, Object value, String serverName) throws ManagementException
on
- The ObjectName of the MBean.serverName
- The server nameattribute
- A String specifying the name of the attribute to be set.value
- The value to set to the attribute.
ManagementException
- management operation failedpublic static void setAttributes(ObjectName on, AttributeList attributes, String serverName) throws ManagementException
on
- The ObjectName of the MBean within which the attribute is to be set.serverName
- The server nameattributes
- A list of attributes: The identification of the attribute to be set and the value it is to be set to
ManagementException
- management operation failedpublic static Object invoke(ObjectName on, String operation, Object[] param, String[] signature, String serverName) throws ManagementException
on
- MBean nameoperation
- operation to invokeparam
- invoke parameterssignature
- invoke parameters signatureserverName
- The server name
ManagementException
- management operation failedpublic static Set queryNames(ObjectName on, String serverName) throws ManagementException
on
- MBean nameserverName
- The server name
ManagementException
- management operation failedpublic static MBeanInfo getMBeanInfo(ObjectName on, String serverName) throws ManagementException
name
- MBean's ObjectNameserverName
- The server name
ManagementException
- management operation failedpublic static void unregisterMBean(ObjectName on, String serverName) throws ManagementException
on
- The object name of the MBean.serverName
- The server name
ManagementException
- wraps exception thrown by the called management operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |