Class StatisticsConfig
- java.lang.Object
-
- org.silverpeas.core.silverstatistics.volume.model.StatisticsConfig
-
public class StatisticsConfig extends Object
Class declaration- Author:
- SLR
-
-
Constructor Summary
Constructors Constructor Description StatisticsConfig()
Constructor declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areGoodData(StatType typeOfStats, List<String> data)
Are the data well formed for the specified type of statistics.List<String>
getAllKeys(StatType typeOfStats)
Collection<StatType>
getAllTypes()
String
getKeyType(StatType typeOfStats, String keyName)
StatisticMode
getModeCumul(StatType typeOfStats)
int
getNumberOfKeys(StatType idFamilyStats)
int
getNumberOfStatsType()
int
getPurge(StatType typeOfStats)
String
getTableName(StatType typeOfStats)
Gets the table name of the specified statistics type.int
indexOfKey(StatType typeOfStats, String keyName)
void
init()
void
initialize(org.silverpeas.kernel.bundle.SettingBundle settings)
boolean
isAsynchron(StatType typeOfStats)
boolean
isCumulKey(StatType typeOfStats, String keyName)
boolean
isExist(StatType idFamilyStats)
boolean
isRun(StatType typeOfStats)
boolean
isValidConfigFile()
Is this configuration valid?
-
-
-
Method Detail
-
initialize
public void initialize(org.silverpeas.kernel.bundle.SettingBundle settings) throws SilverStatisticsConfigException
- Throws:
SilverStatisticsConfigException
-
init
public void init() throws SilverStatisticsConfigException
- Throws:
SilverStatisticsConfigException
-
getTableName
public String getTableName(StatType typeOfStats)
Gets the table name of the specified statistics type.- Parameters:
typeOfStats
- type of statistics- Returns:
- table name which is linked to this type of statistics
-
getModeCumul
public StatisticMode getModeCumul(StatType typeOfStats)
-
isRun
public boolean isRun(StatType typeOfStats)
-
isAsynchron
public boolean isAsynchron(StatType typeOfStats)
-
getNumberOfStatsType
public int getNumberOfStatsType()
-
isExist
public boolean isExist(StatType idFamilyStats)
-
getNumberOfKeys
public int getNumberOfKeys(StatType idFamilyStats)
-
getAllTypes
public Collection<StatType> getAllTypes()
-
getPurge
public int getPurge(StatType typeOfStats)
-
isValidConfigFile
public boolean isValidConfigFile()
Is this configuration valid?- Returns:
- true if configuration file is valid, false else if
-
-