public class PlatformMBeanServer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OTL_DOMAIN |
| Modifier and Type | Method and Description |
|---|---|
static PlatformMBeanServer |
get()
Return the singleton mbean server.
|
Object |
getAttribute(ObjectName name,
String attribute) |
AttributeList |
getAttributes(ObjectName name,
String[] attributes) |
String |
getDefaultDomain() |
MBeanInfo |
getMBeanInfo(ObjectName name) |
Object |
invoke(ObjectName name,
String operationName,
Object[] params,
String[] signature) |
int |
mbeanCount() |
Set<ObjectInstance> |
queryMBeans(ObjectName name,
QueryExp query) |
Set<ObjectName> |
queryNames(ObjectName name,
QueryExp query) |
void |
register(String type,
String name,
Object mbean) |
void |
setAttribute(ObjectName name,
Attribute attribute) |
AttributeList |
setAttributes(ObjectName name,
AttributeList attributes) |
void |
unregister(String type,
String name) |
public static final String OTL_DOMAIN
public static PlatformMBeanServer get()
public void register(String type, String name, Object mbean) throws MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
public void unregister(String type, String name) throws MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException, InstanceNotFoundException
public String getDefaultDomain()
public int mbeanCount()
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, IOException
public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, IOException
public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, IOException
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException
public Set<ObjectName> queryNames(ObjectName name, QueryExp query)
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query)
Copyright © 2020. All rights reserved.