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 Details

  • Constructor Details

    • ConfluenceUsageInfoInstrumentProvider

      @Deprecated(forRemoval=true, since="9.4") public ConfluenceUsageInfoInstrumentProvider(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.tenancy.api.TenantAccessor tenantAccessor, SystemInformationService systemInformationService, com.atlassian.cache.CacheManager cacheManager, ConfluenceInstrumentRegistry confluenceInstrumentRegistry)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 9.4
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception