Class ConfluenceUsageInfoInstrumentProvider
java.lang.Object
com.atlassian.confluence.util.profiling.ConfluenceUsageInfoInstrumentProvider
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class ConfluenceUsageInfoInstrumentProvider
extends Object
implements org.springframework.beans.factory.InitializingBean
Main class which provide Confluence usage statistic via Instrument. Currently, we don't have anyway to get accurate data except DB call.
So now, I will query data and put it into cache which will expire after 10 mins. If JMX is enable then within 5 mins we only have 1 single DB call
(which I think not so bad because we have 2 conditions someone continuously get cache and we don't have any value in cache ).
Another note that we only expose instruments after we have DB available.
- Since:
- 6.1.0
-
Field Summary
Fields -
Method Summary
-
Field Details
-
CONFLUENCE_USAGE_INSTRUMENT_CACHE_KEY
Deprecated.since 7.5 UseCACHE_NAME
- See Also:
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
CACHE_NAME