public class XWikiStatsStoreService extends AbstractXWikiRunnable
Constructor and Description |
---|
XWikiStatsStoreService(XWikiContext context)
Create new instance of XWikiStatsRegister and init statistics queue.
|
Modifier and Type | Method and 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.
|
cleanupExecutionContext, initExecutionContext, run
public XWikiStatsStoreService(XWikiContext context)
context
- the XWiki context.protected void declareProperties(org.xwiki.context.ExecutionContext executionContext)
AbstractXWikiRunnable
declareProperties
in class AbstractXWikiRunnable
executionContext
- the execution context.public void start()
public void stop()
public void runInternal() throws InterruptedException
runInternal
in class AbstractXWikiRunnable
InterruptedException
public void add(XWikiStatsStoreItem statsRegisterItem)
statsRegisterItem
- the statistic store item.public void addStats(XWikiDocument doc, String action, XWikiContext context)
doc
- the document.action
- the user action.context
- the XWiki context.Copyright © 2004–2022 XWiki. All rights reserved.