Class AbstractStatisticsEvent

All Implemented Interfaces:
IEvent
Direct Known Subclasses:
NumberOfPagesStatisticsEvent, SizeOfPdfStatisticsEvent

public abstract class AbstractStatisticsEvent extends AbstractProductITextEvent
Abstract class which defines statistics event. Only for internal usage.
  • Constructor Details

    • 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 Details

    • createStatisticsAggregatorFromName

      public AbstractStatisticsAggregator createStatisticsAggregatorFromName (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 List<String> getStatisticsNames()
      Gets all statistics names related to this event.
      Returns:
      List of statistics names