@Service(value="blStatisticsService") public class StatisticsServiceImpl extends Object implements DynamicMBean, StatisticsService, org.springframework.jmx.export.naming.SelfNaming
| Modifier and Type | Field and Description |
|---|---|
protected StatisticsServiceLogAdapter |
adapter |
protected String |
appName |
protected Map<String,CacheStat> |
cacheStats |
protected Long |
logResolution |
| Constructor and Description |
|---|
StatisticsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateLogging() |
void |
addCacheStat(String key,
boolean isHit) |
void |
disableLogging() |
StatisticsServiceLogAdapter |
getAdapter() |
String |
getAppName() |
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
protected CacheStat |
getCacheStat(String key) |
Long |
getLogResolution() |
MBeanInfo |
getMBeanInfo() |
ObjectName |
getObjectName() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
setAdapter(StatisticsServiceLogAdapter adapter) |
void |
setAppName(String appName) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
void |
setLogResolution(Long logResolution) |
@Value(value="${cache.stat.log.resolution}")
protected Long logResolution
protected String appName
protected StatisticsServiceLogAdapter adapter
public void addCacheStat(String key, boolean isHit)
addCacheStat in interface StatisticsServicepublic Long getLogResolution()
getLogResolution in interface StatisticsServicepublic void setLogResolution(Long logResolution)
setLogResolution in interface StatisticsServicepublic void activateLogging()
activateLogging in interface StatisticsServicepublic void disableLogging()
disableLogging in interface StatisticsServicepublic String getAppName()
public void setAppName(String appName)
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic ObjectName getObjectName() throws MalformedObjectNameException
getObjectName in interface org.springframework.jmx.export.naming.SelfNamingMalformedObjectNameExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic StatisticsServiceLogAdapter getAdapter()
public void setAdapter(StatisticsServiceLogAdapter adapter)
Copyright © 2022. All rights reserved.