Package com.xpn.xwiki.stats.impl.xwiki
Class XWikiStatsStoreService
- java.lang.Object
-
- com.xpn.xwiki.util.AbstractXWikiRunnable
-
- com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService
-
- All Implemented Interfaces:
Runnable
public class XWikiStatsStoreService extends AbstractXWikiRunnable
Back-end statistics storing service.- Since:
- 1.4M2
- Version:
- $Id: f071ac295504eff227c3fbe79770a99976b0caf4 $
-
-
Constructor Summary
Constructors Constructor Description XWikiStatsStoreService(XWikiContext context)
Create new instance of XWikiStatsRegister and init statistics queue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(XWikiStatsStoreItem statsRegisterItem)
Add new statistic to store.void
addStats(XWikiDocument doc, String action, XWikiContext context)
Add all the statistics to the save queue.protected void
declareProperties(org.xwiki.context.ExecutionContext executionContext)
Lets subclasses declare execution context properties.void
runInternal()
void
start()
Start storing thread.void
stop()
Stop storing thread.-
Methods inherited from class com.xpn.xwiki.util.AbstractXWikiRunnable
cleanupExecutionContext, initExecutionContext, run
-
-
-
-
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 classAbstractXWikiRunnable
- Parameters:
executionContext
- the execution context.
-
start
public void start()
Start storing thread.
-
stop
public void stop()
Stop storing thread.
-
runInternal
public void runInternal() throws InterruptedException
- Specified by:
runInternal
in classAbstractXWikiRunnable
- Throws:
InterruptedException
-
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.
-
-