public class ReportExecutionStatus
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ReportExecutionStatus.Status
Report execution statuses.
|
Modifier | Constructor and Description |
---|---|
protected |
ReportExecutionStatus(ReportExecutionStatus.Status status,
java.lang.Integer totalPageCount,
int currentPageCount,
java.lang.Throwable error) |
Modifier and Type | Method and Description |
---|---|
static ReportExecutionStatus |
canceled(int pageCount)
Creates a canceled status
|
static ReportExecutionStatus |
error(int pageCount,
java.lang.Throwable error)
Creates an error status.
|
static ReportExecutionStatus |
finished(int pageCount)
Creates a finished status.
|
int |
getCurrentPageCount()
Returns the number of pages generated so far.
|
java.lang.Throwable |
getError()
Returns the error encountered during the report generation, if any.
|
ReportExecutionStatus.Status |
getStatus()
Returns the status of the execution.
|
java.lang.Integer |
getTotalPageCount()
Returns the total number of pages in the report, or
null if not yet known. |
static ReportExecutionStatus |
running(int pageCount)
Create a running status.
|
protected ReportExecutionStatus(ReportExecutionStatus.Status status, java.lang.Integer totalPageCount, int currentPageCount, java.lang.Throwable error)
public static ReportExecutionStatus finished(int pageCount)
pageCount
- the total number of pagespublic static ReportExecutionStatus canceled(int pageCount)
pageCount
- the current number of pagespublic static ReportExecutionStatus error(int pageCount, java.lang.Throwable error)
pageCount
- the current number of pageserror
- the errorpublic static ReportExecutionStatus running(int pageCount)
pageCount
- the current number of pagespublic ReportExecutionStatus.Status getStatus()
public java.lang.Integer getTotalPageCount()
null
if not yet known.public int getCurrentPageCount()
public java.lang.Throwable getError()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com