public class Server extends Object
| Constructor and Description |
|---|
Server() |
| Modifier and Type | Method and Description |
|---|---|
static Iterator |
getDomainData()
Get the domain data
|
static String |
getMBeanAttribute(String name,
String attrName)
Get MBean attribute
|
static Object |
getMBeanAttributeObject(String name,
String attrName)
Get MBean attribute object
|
static AttrResultInfo |
getMBeanAttributeResultInfo(String name,
MBeanAttributeInfo attrInfo)
Get MBean attribute result info
|
static MBeanData |
getMBeanData(String name)
Get MBean data
|
static MBeanServer |
getMBeanServer()
Get the platform MBeanServer instance
|
static MBeanServer |
getMBeanServer(String domain)
Get the MBeanServer instance
|
static OpResultInfo |
invokeOp(String name,
int index,
String[] args)
Invoke an operation
|
static OpResultInfo |
invokeOpByName(String name,
String opName,
String[] argTypes,
String[] args)
Invoke an operation by name
|
static AttributeList |
setAttributes(String name,
HashMap attributes)
Set MBean attributes
|
public static MBeanServer getMBeanServer()
public static MBeanServer getMBeanServer(String domain)
domain - The domainpublic static Iterator getDomainData() throws JMException
JMException - Thrown if an error occurspublic static MBeanData getMBeanData(String name) throws JMException
name - The bean nameJMException - Thrown if an error occurspublic static Object getMBeanAttributeObject(String name, String attrName) throws JMException
name - The bean nameattrName - The attribute nameJMException - Thrown if an error occurspublic static String getMBeanAttribute(String name, String attrName) throws JMException
name - The bean nameattrName - The attribute nameJMException - Thrown if an error occurspublic static AttrResultInfo getMBeanAttributeResultInfo(String name, MBeanAttributeInfo attrInfo) throws JMException
name - The bean nameattrInfo - The attribute informationJMException - Thrown if an error occurspublic static AttributeList setAttributes(String name, HashMap attributes) throws JMException
name - The bean nameattributes - The attributesJMException - Thrown if an error occurspublic static OpResultInfo invokeOp(String name, int index, String[] args) throws JMException
name - The bean nameindex - The method indexargs - The argumentsJMException - Thrown if an error occurspublic static OpResultInfo invokeOpByName(String name, String opName, String[] argTypes, String[] args) throws JMException
name - The bean nameopName - The operation nameargTypes - The argument typesargs - The argumentsJMException - Thrown if an error occursCopyright © 2021 JBoss by Red Hat. All rights reserved.