public abstract class AbstractStatsStoreItem extends Object implements XWikiStatsStoreItem
XWikiStatsStoreItem.| Modifier and Type | Field and Description |
|---|---|
protected XWikiContext |
context
The XWiki context clone made when this statistics event occurred.
|
protected String |
name
The statistic name.
|
protected int |
period
The period.
|
protected Date |
periodDate
The period date.
|
protected StatsUtil.PeriodType |
periodType
The period type.
|
| Constructor and Description |
|---|
AbstractStatsStoreItem(String name,
Date periodDate,
StatsUtil.PeriodType periodType,
XWikiContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
store(List<XWikiStatsStoreItem> statsList)
Store provided statistics into the database.
|
protected abstract void |
storeInternal(List<XWikiStatsStoreItem> statsList)
Store provided statistics into the database.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdprotected XWikiContext context
protected String name
protected Date periodDate
protected StatsUtil.PeriodType periodType
protected int period
public AbstractStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, XWikiContext context)
name - the statistic name.periodDate - the period date.periodType - the period type.context - the XWiki context.public void store(List<XWikiStatsStoreItem> statsList)
XWikiStatsStoreItemstore in interface XWikiStatsStoreItemstatsList - the list of statistics item to store.protected abstract void storeInternal(List<XWikiStatsStoreItem> statsList)
statsList - the list of statistics item to store.Copyright © 2004–2022 XWiki. All rights reserved.