|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quickfixj.jmx.JmxExporter
public class JmxExporter
Field Summary | |
---|---|
static int |
REGISTRATION_FAIL_ON_EXISTING
Constant indicating that registration should fail when attempting to register an MBean under a name that already exists. |
static int |
REGISTRATION_IGNORE_EXISTING
Constant indicating that registration should ignore the affected MBean when attempting to register an MBean under a name that already exists. |
static int |
REGISTRATION_REPLACE_EXISTING
Constant indicating that registration should replace the affected MBean when attempting to register an MBean under a name that already exists. |
Constructor Summary | |
---|---|
JmxExporter()
|
|
JmxExporter(javax.management.MBeanServer mbeanServer)
|
|
JmxExporter(javax.management.MBeanServer mbeanServer,
int registrationBehaviour)
|
Method Summary | |
---|---|
void |
export(Connector connector)
|
javax.management.MBeanServer |
getMBeanServer()
|
void |
registerMBean(java.lang.Object mbean,
javax.management.ObjectName objectName)
Actually register the MBean with the server. |
void |
setRegistrationBehavior(int registrationBehaviour)
Specify what action should be taken when attempting to register an MBean under an ObjectName that already exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REGISTRATION_FAIL_ON_EXISTING
This is the default registration behaviour.
public static final int REGISTRATION_IGNORE_EXISTING
public static final int REGISTRATION_REPLACE_EXISTING
Constructor Detail |
---|
public JmxExporter(javax.management.MBeanServer mbeanServer, int registrationBehaviour)
public JmxExporter(javax.management.MBeanServer mbeanServer)
public JmxExporter() throws javax.management.JMException
javax.management.JMException
Method Detail |
---|
public void setRegistrationBehavior(int registrationBehaviour)
ObjectName
that already exists.
Default is REGISTRATION_FAIL_ON_EXISTING.
REGISTRATION_FAIL_ON_EXISTING
,
REGISTRATION_IGNORE_EXISTING
,
REGISTRATION_REPLACE_EXISTING
public void export(Connector connector)
public javax.management.MBeanServer getMBeanServer()
public void registerMBean(java.lang.Object mbean, javax.management.ObjectName objectName) throws javax.management.JMException
setRegistrationBehavior(int)
.
This design (and also code) was unashamedly cribbed from Spring's
MBeanRegistrationSupport
class. Thanks Spring team!
mbean
- objectName
-
javax.management.JMException
REGISTRATION_FAIL_ON_EXISTING
,
REGISTRATION_IGNORE_EXISTING
,
REGISTRATION_REPLACE_EXISTING
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |