@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 StatisticsService
public Long getLogResolution()
getLogResolution
in interface StatisticsService
public void setLogResolution(Long logResolution)
setLogResolution
in interface StatisticsService
public void activateLogging()
activateLogging
in interface StatisticsService
public void disableLogging()
disableLogging
in interface StatisticsService
public String getAppName()
public void setAppName(String appName)
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public ObjectName getObjectName() throws MalformedObjectNameException
getObjectName
in interface org.springframework.jmx.export.naming.SelfNaming
MalformedObjectNameException
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
public StatisticsServiceLogAdapter getAdapter()
public void setAdapter(StatisticsServiceLogAdapter adapter)
Copyright © 2022. All rights reserved.