Class ReportExecutionStatus
java.lang.Object
net.sf.jasperreports.web.servlets.ReportExecutionStatus
Information related to the status of a report execution.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Report execution statuses. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ReportExecutionStatus
(ReportExecutionStatus.Status status, Integer totalPageCount, int currentPageCount, Throwable error) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportExecutionStatus
canceled
(int pageCount) Creates a canceled statusstatic ReportExecutionStatus
Creates an error status.static ReportExecutionStatus
finished
(int pageCount) Creates a finished status.int
Returns the number of pages generated so far.getError()
Returns the error encountered during the report generation, if any.Returns the status of the execution.Returns the total number of pages in the report, ornull
if not yet known.static ReportExecutionStatus
running
(int pageCount) Create a running status.
-
Constructor Details
-
ReportExecutionStatus
protected ReportExecutionStatus(ReportExecutionStatus.Status status, Integer totalPageCount, int currentPageCount, Throwable error)
-
-
Method Details
-
finished
Creates a finished status.- Parameters:
pageCount
- the total number of pages- Returns:
- a finished status
-
canceled
Creates a canceled status- Parameters:
pageCount
- the current number of pages- Returns:
- a canceled status
-
error
Creates an error status.- Parameters:
pageCount
- the current number of pageserror
- the error- Returns:
- an error status
-
running
Create a running status.- Parameters:
pageCount
- the current number of pages- Returns:
- a running status
-
getStatus
Returns the status of the execution.- Returns:
- the status of the execution
-
getTotalPageCount
Returns the total number of pages in the report, ornull
if not yet known.- Returns:
- the total number of pages in the report if known
-
getCurrentPageCount
public int getCurrentPageCount()Returns the number of pages generated so far.- Returns:
- the current number of pages
-
getError
Returns the error encountered during the report generation, if any.- Returns:
- the error encountered during the report generation, if any
-