Package org.mapfish.print.processor
Class ExecutionStats
java.lang.Object
org.mapfish.print.processor.ExecutionStats
Statisctics about the execution of a print job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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()
-
Constructor Details
-
ExecutionStats
public ExecutionStats()
-
-
Method Details
-
addMapStats
Add statistics about a created map.- Parameters:
mapContext
- themapValues
- the
-
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.
-