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 enumReport execution statuses. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReportExecutionStatus(ReportExecutionStatus.Status status, Integer totalPageCount, int currentPageCount, Throwable error) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportExecutionStatuscanceled(int pageCount) Creates a canceled statusstatic ReportExecutionStatusCreates an error status.static ReportExecutionStatusfinished(int pageCount) Creates a finished status.intReturns 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, ornullif not yet known.static ReportExecutionStatusrunning(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, ornullif 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
-