Class AbstractJMXMBean
java.lang.Object
de.hybris.platform.jmx.mbeans.impl.JMXBindableTenantAwareObject
de.hybris.platform.jmx.mbeans.impl.AbstractJMXMBean
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
CronJobsInfoMBeanImpl,DatabaseOverviewMBeanImpl,FlexibleQueryMBeanImpl,MainCacheMBeanImpl,QueueInfoBeanImpl,RegionCacheMBeanImpl
public abstract class AbstractJMXMBean
extends JMXBindableTenantAwareObject
implements org.springframework.beans.factory.InitializingBean
The hybris JMX MBean. All MBeans must extends this class. This class deals with the tenant awareness, the creation of
the
ObjectName for each MBean ans provides methods for activating and deactivating the tenant. Please use
activateTenant() and deactivateTenant() when trying to access tenant related informations.
Use activateTenant() and deactivateTenant() or the inner class AbstractJMXMBean.TenantAwareExecutor to
control the activation of the tenants.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classInner tenant aware executor class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidActivates the tenant which was active when registering the current bean.voidprotected voidDeactivate the current tenant for the current MBean.interface type for jmx bean apiReturns aObjectNameand catches exceptions if any occures.protected booleanvoidsetBeanInterface(Class beanInterface) interface type for jmx bean apivoidsetJmxPath(String jmxPath) Injected by Spring as mandatory attribute.Methods inherited from class de.hybris.platform.jmx.mbeans.impl.JMXBindableTenantAwareObject
getJmxDomain, getJmxPath, getObjectNameString, getTenantId, setTenant
-
Constructor Details
-
AbstractJMXMBean
public AbstractJMXMBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
activateTenant
protected void activateTenant()Activates the tenant which was active when registering the current bean. -
deactivateTenant
protected void deactivateTenant()Deactivate the current tenant for the current MBean. -
getObjectName
Returns aObjectNameand catches exceptions if any occures.- Returns:
nullif any exception happend.- Throws:
NullPointerExceptionMalformedObjectNameException
-
isJNDIContextAware
protected boolean isJNDIContextAware() -
setJmxPath
Injected by Spring as mandatory attribute. The path should be in the following style: key1=value1, key2=value2. Each key/value pair is one level in the jconsole. The last key/value pair is the node itself. Must not return an empty String!- Overrides:
setJmxPathin classJMXBindableTenantAwareObject
-
setBeanInterface
interface type for jmx bean api -
getBeanInterface
interface type for jmx bean api
-