Class StatisticsServiceImpl
java.lang.Object
org.broadleafcommerce.common.cache.StatisticsServiceImpl
- All Implemented Interfaces:
DynamicMBean
,StatisticsService
,org.springframework.jmx.export.naming.SelfNaming
@Service("blStatisticsService")
public class StatisticsServiceImpl
extends Object
implements DynamicMBean, StatisticsService, org.springframework.jmx.export.naming.SelfNaming
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StatisticsServiceLogAdapter
protected String
protected Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addCacheStat
(String key, boolean isHit) void
getAttribute
(String attribute) getAttributes
(String[] attributes) protected CacheStat
getCacheStat
(String key) void
setAdapter
(StatisticsServiceLogAdapter adapter) void
setAppName
(String appName) void
setAttribute
(Attribute attribute) setAttributes
(AttributeList attributes) void
setLogResolution
(Long logResolution)
-
Field Details
-
logResolution
-
appName
-
adapter
-
cacheStats
-
-
Constructor Details
-
StatisticsServiceImpl
public StatisticsServiceImpl()
-
-
Method Details
-
addCacheStat
- Specified by:
addCacheStat
in interfaceStatisticsService
-
getCacheStat
-
getLogResolution
- Specified by:
getLogResolution
in interfaceStatisticsService
-
setLogResolution
- Specified by:
setLogResolution
in interfaceStatisticsService
-
activateLogging
public void activateLogging()- Specified by:
activateLogging
in interfaceStatisticsService
-
disableLogging
public void disableLogging()- Specified by:
disableLogging
in interfaceStatisticsService
-
getAppName
-
setAppName
-
getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-
getAttributes
- Specified by:
getAttributes
in interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributes
in interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
ReflectionException
-
getObjectName
- Specified by:
getObjectName
in interfaceorg.springframework.jmx.export.naming.SelfNaming
- Throws:
MalformedObjectNameException
-
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
getAdapter
-
setAdapter
-