Package de.hybris.platform.jmx
Class MBeanRegisterUtilities
java.lang.Object
de.hybris.platform.jmx.MBeanRegisterUtilities
Utility class for register and unregister hybris
AbstractJMXMBeans.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StandardMBeancreateAndConfigureMBean(Object bean, String beanKey, Class beanInterafce) org.springframework.jmx.export.assembler.MBeanInfoAssemblerused for the org.springframework.jmx.export.annotation.* annotations in the java classesvoidrefresh/updates the map with the registered and unregistered beans.voidregisterMBeans(Map<String, AbstractJMXMBean> beans) Register the given beans.voidsetAssembler(org.springframework.jmx.export.assembler.MBeanInfoAssembler assembler) used for the org.springframework.jmx.export.annotation.* annotaions in the java classes.voidunregisterMBeans(Map<String, AbstractJMXMBean> beans) Unregister the given map beans.
-
Constructor Details
-
MBeanRegisterUtilities
public MBeanRegisterUtilities()
-
-
Method Details
-
registerMBeans
Register the given beans.- Parameters:
beans- currently not yet registered beans.
-
unregisterMBeans
Unregister the given map beans.- Parameters:
beans- beans which are registered.
-
createAndConfigureMBean
protected StandardMBean createAndConfigureMBean(Object bean, String beanKey, Class beanInterafce) throws org.springframework.jmx.export.MBeanExportException - Throws:
org.springframework.jmx.export.MBeanExportException
-
getRegisteredBeans
- Returns:
- a map with the registered
AbstractJMXMBeans and their qualifier as String.
-
getUnRegisteredBeans
- Returns:
- a map with not registered
AbstractJMXMBeans and their qualifier as String.
-
refreshMBeans
public void refreshMBeans()refresh/updates the map with the registered and unregistered beans. -
setAssembler
public void setAssembler(org.springframework.jmx.export.assembler.MBeanInfoAssembler assembler) used for the org.springframework.jmx.export.annotation.* annotaions in the java classes. Will be injected by spring.- Parameters:
assembler- the assembler to set
-
getAssembler
public org.springframework.jmx.export.assembler.MBeanInfoAssembler getAssembler()used for the org.springframework.jmx.export.annotation.* annotations in the java classes- Returns:
- the assembler
-