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 StatisticsServiceLogAdapterprotected Stringprotected Long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddCacheStat(String key, boolean isHit) voidgetAttribute(String attribute) getAttributes(String[] attributes) protected CacheStatgetCacheStat(String key) voidsetAdapter(StatisticsServiceLogAdapter adapter) voidsetAppName(String appName) voidsetAttribute(Attribute attribute) setAttributes(AttributeList attributes) voidsetLogResolution(Long logResolution)
-
Field Details
-
logResolution
-
appName
-
adapter
-
cacheStats
-
-
Constructor Details
-
StatisticsServiceImpl
public StatisticsServiceImpl()
-
-
Method Details
-
addCacheStat
- Specified by:
addCacheStatin interfaceStatisticsService
-
getCacheStat
-
getLogResolution
- Specified by:
getLogResolutionin interfaceStatisticsService
-
setLogResolution
- Specified by:
setLogResolutionin interfaceStatisticsService
-
activateLogging
public void activateLogging()- Specified by:
activateLoggingin interfaceStatisticsService
-
disableLogging
public void disableLogging()- Specified by:
disableLoggingin interfaceStatisticsService
-
getAppName
-
setAppName
-
getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
getAttributes
- Specified by:
getAttributesin interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributesin interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getObjectName
- Specified by:
getObjectNamein interfaceorg.springframework.jmx.export.naming.SelfNaming- Throws:
MalformedObjectNameException
-
getMBeanInfo
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
getAdapter
-
setAdapter
-