public class ReportStatusManager
extends java.lang.Object
Constructor and Description |
---|
ReportStatusManager(GatewayContext context) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.util.UUID uuid) |
void |
finish(ReportExecutionContext reportExecutionContext)
Call this when report execution is finished to save last execution time and remove the report from the current
execution map.
|
java.util.List<ReportExecutionContext> |
getCurrentReportContexts() |
java.util.List<ReportExecutionContext> |
getCurrentReportContextsForProject(long projectId) |
java.util.Date |
getLastExecution(long projectId,
java.lang.String reportPath)
Returns the start time of the last finished execution for this report.
|
long |
getLastExecutionDuration(long projectId,
java.lang.String reportPath) |
java.util.Date |
getLastScheduledExecution(long projectId,
java.lang.String reportPath)
Returns the start time of the last finished scheduled execution for this report.
|
ReportExecutionContext |
getReportExecutionContext(long projectId,
java.lang.String reportPath,
boolean isSampleData) |
java.util.List<ReportStatusWatcher> |
getStatusList()
Used by ReportStatusView to populate the status page.
|
public ReportStatusManager(GatewayContext context)
public ReportExecutionContext getReportExecutionContext(long projectId, java.lang.String reportPath, boolean isSampleData)
public java.util.List<ReportExecutionContext> getCurrentReportContexts()
public java.util.List<ReportExecutionContext> getCurrentReportContextsForProject(long projectId)
public java.util.Date getLastExecution(long projectId, java.lang.String reportPath)
projectId
- reportPath
- public java.util.Date getLastScheduledExecution(long projectId, java.lang.String reportPath)
projectId
- reportPath
- public long getLastExecutionDuration(long projectId, java.lang.String reportPath)
projectId
- reportPath
- public void finish(ReportExecutionContext reportExecutionContext)
reportExecutionContext
- public java.util.List<ReportStatusWatcher> getStatusList()
public void cancel(java.util.UUID uuid)