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 TypeMethodDescriptionbooleanintTime the ReportExecutionContext was createdgetJson()longgetPath()Report pathName of the projectCurrent statusgetUuid()booleanbooleanvoidsetExecFinish(Date execFinish) voidsetExecStart(Date execStart) voidvoidsetProject(String project) voidsetStatus(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:
compareToin interfaceComparable
-
getJson
- Throws:
JSONException
-