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 Collection<String>
getAllKeys(StatType typeOfStats)
Method declarationCollection<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)
int
indexOfKey(StatType typeOfStats, String keyName)
void
init()
void
initialize(SettingBundle settings)
boolean
isAsynchron(StatType typeOfStats)
boolean
isCumulKey(StatType typeOfStats, String keyName)
boolean
isExist(StatType idFamilyStats)
boolean
isGoodDatas(StatType typeOfStats, List<String> dataArray)
boolean
isRun(StatType typeOfStats)
boolean
isValidConfigFile()
-
-
-
Method Detail
-
initialize
public void initialize(SettingBundle settings) throws SilverStatisticsConfigException
- Throws:
SilverStatisticsConfigException
-
init
public void init() throws SilverStatisticsConfigException
- Throws:
SilverStatisticsConfigException
-
getAllKeys
public Collection<String> getAllKeys(StatType typeOfStats)
Method declaration- Parameters:
typeOfStats
-- Returns:
-
getKeyType
public String getKeyType(StatType typeOfStats, String keyName)
- Parameters:
typeOfStats
-keyName
-- Returns:
-
getTableName
public String getTableName(StatType typeOfStats)
- Parameters:
typeOfStats
-- Returns:
- table name which is linked to this type of statistics
-
getModeCumul
public StatisticMode getModeCumul(StatType typeOfStats)
- Parameters:
typeOfStats
-- Returns:
-
isRun
public boolean isRun(StatType typeOfStats)
- Parameters:
typeOfStats
-- Returns:
-
isAsynchron
public boolean isAsynchron(StatType typeOfStats)
-
getNumberOfStatsType
public int getNumberOfStatsType()
-
isExist
public boolean isExist(StatType idFamilyStats)
- Parameters:
idFamilyStats
-- Returns:
-
getNumberOfKeys
public int getNumberOfKeys(StatType idFamilyStats)
- Parameters:
idFamilyStats
-- Returns:
-
isCumulKey
public boolean isCumulKey(StatType typeOfStats, String keyName)
- Parameters:
typeOfStats
-keyName
-- Returns:
-
indexOfKey
public int indexOfKey(StatType typeOfStats, String keyName)
- Parameters:
typeOfStats
-keyName
-- Returns:
-
getAllTypes
public Collection<StatType> getAllTypes()
- Returns:
-
getPurge
public int getPurge(StatType typeOfStats)
- Parameters:
typeOfStats
-- Returns:
-
isValidConfigFile
public boolean isValidConfigFile()
- Returns:
- true if configuration file is valid, false else if
-
-