Package org.ametys.core.mbean
Class CacheUsageMBean
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.mbean.AbstractAmetysDynamicMBean
org.ametys.core.mbean.CacheUsageMBean
- All Implemented Interfaces:
DynamicMBean
,LogEnabled
,Serviceable
MBean providing information about Ametys cache usage
-
Field Summary
Fields inherited from class org.ametys.core.mbean.AbstractAmetysDynamicMBean
_mBeanInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
_getAttribute
(String attributeName) Get the value of the attribute.protected MBeanAttributeInfo[]
Get the definition of the attributes exposed by the MBean.protected String
Get the description of the MBeanprotected String
Get the human readable name of the MBean.long
Get the total size of all Ametys cachevoid
service
(ServiceManager manager) Methods inherited from class org.ametys.core.mbean.AbstractAmetysDynamicMBean
getAttribute, getAttributes, getMBeanConstructorInfo, getMBeanInfo, getMBeanNotificationInfo, getMBeanOperationInfo, invoke, setAttribute, setAttributes
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
the ROLE of the component
-
-
Constructor Details
-
CacheUsageMBean
public CacheUsageMBean()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getTotalCacheSize
Get the total size of all Ametys cache- Returns:
- the cache size
-
_getAttribute
Description copied from class:AbstractAmetysDynamicMBean
Get the value of the attribute. This method should assume that attributeName is not null. And return null if the name is not recognized- Specified by:
_getAttribute
in classAbstractAmetysDynamicMBean
- Parameters:
attributeName
- the name of the attribute- Returns:
- the value of the attribute
-
getMBeanName
Description copied from class:AbstractAmetysDynamicMBean
Get the human readable name of the MBean. This name will be exposed.- Specified by:
getMBeanName
in classAbstractAmetysDynamicMBean
- Returns:
- the name
-
getMBeanDescription
Description copied from class:AbstractAmetysDynamicMBean
Get the description of the MBean- Specified by:
getMBeanDescription
in classAbstractAmetysDynamicMBean
- Returns:
- the description
-
getMBeanAttributes
Description copied from class:AbstractAmetysDynamicMBean
Get the definition of the attributes exposed by the MBean.- Specified by:
getMBeanAttributes
in classAbstractAmetysDynamicMBean
- Returns:
- the attributes information
-