com.scalagent.jmx
Class JMXServer
java.lang.Object
com.scalagent.jmx.JMXServer
- All Implemented Interfaces:
- MXServer
public class JMXServer
- extends java.lang.Object
- implements MXServer
Method Summary |
private void |
computeOSGiServiceNames(java.lang.Class beanClass,
java.lang.Object bean,
java.util.Set registered)
|
java.lang.Object |
getAttribute(javax.management.ObjectName objectName,
java.lang.String attribute)
|
javax.management.MBeanAttributeInfo[] |
getAttributes(javax.management.ObjectName objectName)
|
java.util.Set |
queryNames(javax.management.ObjectName objectName)
|
java.lang.String |
registerMBean(java.lang.Object bean,
java.lang.String fullName)
|
private void |
registerOSGi(java.lang.Object obj,
javax.management.ObjectName objName)
|
void |
setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
|
javax.management.AttributeList |
setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
|
void |
unregisterMBean(java.lang.String fullName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mxserver
private javax.management.MBeanServer mxserver
registeredServices
private java.util.Map registeredServices
registerAsService
public static boolean registerAsService
JMXServer
public JMXServer(javax.management.MBeanServer mxserver)
JMXServer
public JMXServer()
registerOSGi
private void registerOSGi(java.lang.Object obj,
javax.management.ObjectName objName)
computeOSGiServiceNames
private void computeOSGiServiceNames(java.lang.Class beanClass,
java.lang.Object bean,
java.util.Set registered)
registerMBean
public java.lang.String registerMBean(java.lang.Object bean,
java.lang.String fullName)
throws java.lang.Exception
- Specified by:
registerMBean
in interface MXServer
- Throws:
java.lang.Exception
unregisterMBean
public void unregisterMBean(java.lang.String fullName)
throws java.lang.Exception
- Specified by:
unregisterMBean
in interface MXServer
- Throws:
java.lang.Exception
setAttribute
public void setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
throws java.lang.Exception
- Specified by:
setAttribute
in interface MXServer
- Throws:
java.lang.Exception
getAttribute
public java.lang.Object getAttribute(javax.management.ObjectName objectName,
java.lang.String attribute)
throws java.lang.Exception
- Specified by:
getAttribute
in interface MXServer
- Throws:
java.lang.Exception
getAttributes
public javax.management.MBeanAttributeInfo[] getAttributes(javax.management.ObjectName objectName)
throws java.lang.Exception
- Specified by:
getAttributes
in interface MXServer
- Throws:
java.lang.Exception
setAttributes
public javax.management.AttributeList setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
throws java.lang.Exception
- Specified by:
setAttributes
in interface MXServer
- Throws:
java.lang.Exception
queryNames
public java.util.Set queryNames(javax.management.ObjectName objectName)
- Specified by:
queryNames
in interface MXServer
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.