|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JMXServer
JMXServer represents the JMX Agent (comprising an MBeanServer and a
JMX Connector)
Convention:
JMXServer must be registered to OSGi as a service.
| Field Summary | |
|---|---|
static java.lang.String |
SERVER_AUTHENTICATOR_PID
SERVER_AUTHENTICATOR_PID is the configuration key describing which MBeanServerAuthenticator registered
OSGi service to be used as mbean server authenticator. |
static java.lang.String |
SERVER_FORWARDER_PID
SERVER_FORWARDER_PID is the configuration key describing which MBeanServerForwarder registered OSGi
service to be used as the mbean server forwarder. |
static java.lang.String |
SERVER_HOST_IP
SERVER_HOST_IP is the configuration key of which jmx server ip address that this JMXServer
represent. |
static java.lang.String |
SERVER_INSTANCE
SERVER_INSANCE is the configuration key to uniquely identified jmx server. |
static java.lang.String |
SERVER_NAMESPACE
SERVER_NAMESPACE is the configuration key describing this JMXServer namespace. |
static java.lang.String |
SERVER_PORT
SERVER_PORT is the configuration key of which jmx server port that this JMXServer connects to. |
| Method Summary | |
|---|---|
java.lang.String |
getJMXServerId()
Returns the server id. |
void |
registerMBean(javax.management.DynamicMBean mBean,
java.lang.String objectName)
Register the manage bean service. |
void |
unregisterMBean(java.lang.String objectName)
Deregisters an MBean from this MBeanServer |
| Field Detail |
|---|
static final java.lang.String SERVER_HOST_IP
SERVER_HOST_IP is the configuration key of which jmx server ip address that this JMXServer
represent.
This configuration must not be null.
static final java.lang.String SERVER_PORT
SERVER_PORT is the configuration key of which jmx server port that this JMXServer connects to.
This configuration value must not be null and must be an integer value.
static final java.lang.String SERVER_NAMESPACE
SERVER_NAMESPACE is the configuration key describing this JMXServer namespace.
This configuration must not be null.
static final java.lang.String SERVER_INSTANCE
SERVER_INSANCE is the configuration key to uniquely identified jmx server.
This configuration must not be null.
static final java.lang.String SERVER_AUTHENTICATOR_PID
SERVER_AUTHENTICATOR_PID is the configuration key describing which MBeanServerAuthenticator registered
OSGi service to be used as mbean server authenticator.
Please note that:
JMXServer and JMXAuthenticator instances are many to many.
JMXAuthenticator,
JMX Authentication and Authorization,
Constant Field Valuesstatic final java.lang.String SERVER_FORWARDER_PID
SERVER_FORWARDER_PID is the configuration key describing which MBeanServerForwarder registered OSGi
service to be used as the mbean server forwarder.
Please note that:
JMXServer and MBeanServerForwarder instance is one to one.
MBeanServerForwarder,
JMX Authentication and Authorization,
Constant Field Values| Method Detail |
|---|
java.lang.String getJMXServerId()
void registerMBean(javax.management.DynamicMBean mBean,
java.lang.String objectName)
throws java.lang.IllegalArgumentException,
javax.management.JMException
mBean - The mBean to register. This argument must not be null.objectName - The object name. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
javax.management.JMException - Thrown if registering mBean fails.
void unregisterMBean(java.lang.String objectName)
throws java.lang.IllegalArgumentException,
javax.management.JMException
MBeanServer
objectName - identifies an MBean & conforms to the format accepted by ObjectName
java.lang.IllegalArgumentException - Thrown if the specified objectName argument must not be null.
javax.management.JMException - Thrown if unregister fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||