Class StatisticsConfig


  • public class StatisticsConfig
    extends Object
    Class declaration
    Author:
    SLR
    • Constructor Detail

      • StatisticsConfig

        public StatisticsConfig()
        Constructor declaration
    • Method Detail

      • 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
      • 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)
      • isCumulKey

        public boolean isCumulKey​(StatType typeOfStats,
                                  String keyName)
      • indexOfKey

        public int indexOfKey​(StatType typeOfStats,
                              String keyName)
      • getPurge

        public int getPurge​(StatType typeOfStats)
      • isValidConfigFile

        public boolean isValidConfigFile()
        Is this configuration valid?
        Returns:
        true if configuration file is valid, false else if
      • areGoodData

        public boolean areGoodData​(StatType typeOfStats,
                                   List<String> data)
        Are the data well formed for the specified type of statistics.
        Parameters:
        typeOfStats - the type of statistics.
        data - the data to check.
        Returns:
        true if data are well formed, false else if