Modifier and Type | Field and Description |
---|---|
private MBeanServer |
mxserver |
static boolean |
registerAsService |
private Map<ObjectName,org.osgi.framework.ServiceRegistration> |
registeredServices |
Constructor and Description |
---|
JMXServer() |
JMXServer(MBeanServer mxserver) |
Modifier and Type | Method and Description |
---|---|
private void |
computeOSGiServiceNames(Class<?> beanClass,
Object bean,
Set<String> registered) |
Object |
getAttribute(String objectName,
String attribute) |
List<String> |
getAttributeNames(String objectName) |
Set<String> |
queryNames(String objectName) |
void |
registerMBean(Object bean,
String fullName) |
private void |
registerOSGi(Object obj,
ObjectName objName) |
void |
unregisterMBean(String fullName) |
public static boolean registerAsService
private MBeanServer mxserver
private Map<ObjectName,org.osgi.framework.ServiceRegistration> registeredServices
public JMXServer(MBeanServer mxserver)
public JMXServer()
private void registerOSGi(Object obj, ObjectName objName)
private void computeOSGiServiceNames(Class<?> beanClass, Object bean, Set<String> registered)
public void registerMBean(Object bean, String fullName) throws Exception
registerMBean
in interface MXServer
Exception
public void unregisterMBean(String fullName) throws Exception
unregisterMBean
in interface MXServer
Exception
public Object getAttribute(String objectName, String attribute) throws Exception
getAttribute
in interface MXServer
Exception
public List<String> getAttributeNames(String objectName) throws Exception
getAttributeNames
in interface MXServer
Exception
public Set<String> queryNames(String objectName) throws MalformedObjectNameException
queryNames
in interface MXServer
MalformedObjectNameException
Copyright © 2013 ScalAgent D.T.. All Rights Reserved.