Class XWikiStatsStoreService

  • All Implemented Interfaces:
    Runnable

    public class XWikiStatsStoreService
    extends AbstractXWikiRunnable
    Back-end statistics storing service.
    Since:
    1.4M2
    Version:
    $Id: f071ac295504eff227c3fbe79770a99976b0caf4 $
    • Constructor Detail

      • XWikiStatsStoreService

        public XWikiStatsStoreService​(XWikiContext context)
        Create new instance of XWikiStatsRegister and init statistics queue.
        Parameters:
        context - the XWiki context.
    • Method Detail

      • declareProperties

        protected void declareProperties​(org.xwiki.context.ExecutionContext executionContext)
        Description copied from class: AbstractXWikiRunnable
        Lets subclasses declare execution context properties.
        Overrides:
        declareProperties in class AbstractXWikiRunnable
        Parameters:
        executionContext - the execution context.
      • start

        public void start()
        Start storing thread.
      • stop

        public void stop()
        Stop storing thread.
      • add

        public void add​(XWikiStatsStoreItem statsRegisterItem)
        Add new statistic to store.
        Parameters:
        statsRegisterItem - the statistic store item.
      • addStats

        public void addStats​(XWikiDocument doc,
                             String action,
                             XWikiContext context)
        Add all the statistics to the save queue.
        Parameters:
        doc - the document.
        action - the user action.
        context - the XWiki context.