public class JMXConfig extends Object
Managed classes are exposed to the MBean server.
To use this class, inject it into your code using the Inject annotation.
ex:
public class BusinessClass(){
//...
&at;Inject
private JMXConfig jmxConfiguration;
//...
}
| Constructor and Description |
|---|
JMXConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMbeanDomain()
The domain to register all
ManagementController classes found during boot. |
String |
getNotificationDomain()
The domain to register the
NotificationBroadcaster MBean. |
String |
getNotificationMBeanName()
The name the
NotificationBroadcaster MBean will be registered to. |
void |
setMbeanDomain(String mbeanDomain) |
void |
setNotificationDomain(String notificationDomain) |
void |
setNotificationMBeanName(String notificationMBeanName) |
public String getMbeanDomain()
ManagementController classes found during boot.
The full name of a MBean has the format of domain:name=MBeanName (ex: br.gov.frameworkdemoiselle.jmx:name=NotificationBroadcaster), this
parameter is the "domain" portion of the full name.
The default is null and when is set to null, all Managed classes will use it's own package as the domain.
public void setMbeanDomain(String mbeanDomain)
getMbeanDomain()public String getNotificationMBeanName()
The name the NotificationBroadcaster MBean will be registered to. The full name
of a MBean has the format of domain:name=MBeanName (ex: br.gov.frameworkdemoiselle.jmx:name=NotificationBroadcaster), this
parameter is the ":name=MBeanName" portion without the ":name=".
The default is the value returned by Class.getSimpleName() when called from the NotificationBroadcaster class.
getMbeanDomain()public void setNotificationMBeanName(String notificationMBeanName)
getNotificationMBeanName()public String getNotificationDomain()
NotificationBroadcaster MBean.
The full name of a MBean has the format of domain:name=MBeanName (ex: br.gov.frameworkdemoiselle.jmx:name=NotificationBroadcaster), this
parameter is the "domain" portion of the full name.
The default is br.gov.frameworkdemoiselle.jmx.
public void setNotificationDomain(String notificationDomain)
getNotificationDomain()Copyright © 2018 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.