|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.api.jmx.JMXAgent
public class JMXAgent
Class used to to expose all Server API calls through a JMX interface locally and remotely.
| Field Summary | |
|---|---|
static String |
CONN_JNDI_PATH
A path to the connector in the JNDI path. |
static String |
MBEAN_SERVER_DOMAIN
The name of the server domain. |
| Constructor Summary | |
|---|---|
JMXAgent()
|
|
| Method Summary | |
|---|---|
static MBeanServer |
getMBeanServer()
Returns the created MBean server. |
static SecurityRegistry |
getSecRegistry()
Returns the security register of the local session. |
static void |
initialize()
Initializes the JMX layer of the Server API. |
static void |
initializeRemote()
Initializes the remotely exposed JMX layer of the Server API. |
static ObjectName |
registerMBean(BaseAdmin aBaseAdmin)
Registers a pre-existing object as an MBean with the MBean server. |
static void |
unregisterMBean(ObjectName aObjectName)
Unregisters an MBean from the MBean server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MBEAN_SERVER_DOMAIN
public static final String CONN_JNDI_PATH
| Constructor Detail |
|---|
public JMXAgent()
| Method Detail |
|---|
public static void initialize()
throws DIException
DIException - if the JMXAgent is already initialized.
public static void initializeRemote()
throws DIException
DIException - if the JMXAgent is not initialized.
public static ObjectName registerMBean(BaseAdmin aBaseAdmin)
throws JMException,
DIException
aBaseAdmin parameter to the
javax.management.MBeanServer.registerMBean(Object, ObjectName)
method.
aBaseAdmin - The MBean to be registered as an MBean.
ObjectName of the newly registered MBean.
JMException - preRegister (MBeanRegistration
interface) method of the MBean has thrown an exception. The
MBean will not be registered.
aBaseAdmin is not a JMX compliant
MBean.aBaseAdmin passed in parameter is null
or no object name is specified.
DIException - if the JMXAgent is not initialized.
public static void unregisterMBean(ObjectName aObjectName)
throws JMException,
DIException
aObjectName - The object name of the MBean to be unregistered.
JMException - MBeanRegistration
interface) method of the MBean has thrown an exception. aObjectName in parameter is null or
the MBean you are when trying to unregister is the
MBeanServerDelegate MBean.DIException - if the JMXAgent is not initialized.
public static SecurityRegistry getSecRegistry()
throws DIException
DIException - if the JMXAgent is not initialized.
public static MBeanServer getMBeanServer()
throws DIException
DIException - if the JMXAgent is not initialized.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||