Class AbstractStatisticsEvent

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • AbstractStatisticsEvent

        protected AbstractStatisticsEvent​(ProductData productData)
        Creates instance of abstract statistics iText event based on passed product data. Only for internal usage.
        Parameters:
        productData - is a description of the product which has generated an event
    • Method Detail

      • createStatisticsAggregatorFromName

        public AbstractStatisticsAggregator createStatisticsAggregatorFromName​(java.lang.String statisticsName)
        Creates statistics aggregator based on provided statistics name. By default prints log warning and returns null.
        Parameters:
        statisticsName - name of statistics based on which aggregator will be created. Shall be one of those returned from getStatisticsNames()
        Returns:
        new instance of AbstractStatisticsAggregator
      • getStatisticsNames

        public abstract java.util.List<java.lang.String> getStatisticsNames()
        Gets all statistics names related to this event.
        Returns:
        List of statistics names