Class ExecutionStats


  • public class ExecutionStats
    extends java.lang.Object
    Statisctics about the execution of a print job.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutionStats()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEmailStats​(javax.mail.internet.InternetAddress[] recipients, boolean storageUsed)
      Add statistics about sent emails.
      void addMapStats​(MapfishMapContext mapContext, MapAttribute.MapAttributeValues mapValues)
      Add statistics about a created map.
      void addPageStats​(net.sf.jasperreports.engine.PrintPageFormat pageFormat)
      Add statistics about a generated page.
      com.fasterxml.jackson.databind.node.ObjectNode toJson()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutionStats

        public ExecutionStats()
    • Method Detail

      • addPageStats

        public void addPageStats​(net.sf.jasperreports.engine.PrintPageFormat pageFormat)
        Add statistics about a generated page.
        Parameters:
        pageFormat - Page format info from Jasper
      • addEmailStats

        public void addEmailStats​(javax.mail.internet.InternetAddress[] recipients,
                                  boolean storageUsed)
        Add statistics about sent emails.
        Parameters:
        recipients - The list of recipients.
        storageUsed - If a remote storage was used.
      • toJson

        public com.fasterxml.jackson.databind.node.ObjectNode toJson()
        Returns:
        a JSON report about the collected statistics.