br.gov.frameworkdemoiselle.internal.configuration
Class JMXConfig

java.lang.Object
  extended by br.gov.frameworkdemoiselle.internal.configuration.JMXConfig

public class JMXConfig
extends java.lang.Object

Contains configuration parameters to control how 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;
    
    //...
    
 }
 

Author:
serpro

Constructor Summary
JMXConfig()
           
 
Method Summary
 java.lang.String getMbeanDomain()
          The domain to register all ManagementController classes found during boot.
 java.lang.String getNotificationDomain()
          The domain to register the NotificationBroadcaster MBean.
 java.lang.String getNotificationMBeanName()
          The name the NotificationBroadcaster MBean will be registered to.
 void setMbeanDomain(java.lang.String mbeanDomain)
           
 void setNotificationDomain(java.lang.String notificationDomain)
           
 void setNotificationMBeanName(java.lang.String notificationMBeanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXConfig

public JMXConfig()
Method Detail

getMbeanDomain

public java.lang.String getMbeanDomain()

The domain to register all 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.


setMbeanDomain

public void setMbeanDomain(java.lang.String mbeanDomain)
See Also:
getMbeanDomain()

getNotificationMBeanName

public java.lang.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.

See Also:
getMbeanDomain()

setNotificationMBeanName

public void setNotificationMBeanName(java.lang.String notificationMBeanName)
See Also:
getNotificationMBeanName()

getNotificationDomain

public java.lang.String getNotificationDomain()

The domain to register the 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.


setNotificationDomain

public void setNotificationDomain(java.lang.String notificationDomain)
See Also:
getNotificationDomain()


Copyright © 2014 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.