Class ReportStatusWatcher
java.lang.Object
com.inductiveautomation.reporting.gateway.ReportStatusWatcher
- All Implemented Interfaces:
Comparable
Filename: ReportStatusWatcher.java
Created on Apr 20, 2015
Author: Kathy Applebaum
Copyright Inductive Automation 2015
Project: Reporting
Gives sortable data for the ReportStatusView panel in the Gateway. Access these through ReportStatusManager.getStatusList()
- Since:
- 7.8.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Time the ReportExecutionContext was createdgetJson()
long
getPath()
Report pathName of the projectCurrent statusgetUuid()
boolean
boolean
void
setExecFinish
(Date execFinish) void
setExecStart
(Date execStart) void
void
setProject
(String project) void
setStatus
(ReportExecutionStatus status) void
-
Field Details
-
project
-
path
-
status
-
execStart
-
execFinish
-
uuid
-
-
Constructor Details
-
ReportStatusWatcher
public ReportStatusWatcher()
-
-
Method Details
-
getProject
Name of the project -
setProject
-
getPath
Report path -
setPath
-
getStatus
Current status -
setStatus
-
getExecStart
Time the ReportExecutionContext was created -
setExecStart
-
getExecFinish
-
setExecFinish
-
getTimeElapsed
- Returns:
- If finished, formatted time between start and finish, otherwise formatted time between start and now.
-
getMillisElapsed
public long getMillisElapsed() -
getUuid
-
setUuid
-
isFinishing
public boolean isFinishing() -
canCancel
public boolean canCancel() -
isCanceled
public boolean isCanceled() -
compareTo
- Specified by:
compareTo
in interfaceComparable
-
getJson
- Throws:
JSONException
-