Class ReportStatusWatcher

java.lang.Object
com.inductiveautomation.reporting.gateway.ReportStatusWatcher
All Implemented Interfaces:
Comparable

public class ReportStatusWatcher extends Object implements 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 Details

  • Constructor Details

    • ReportStatusWatcher

      public ReportStatusWatcher()
  • Method Details

    • getProject

      public String getProject()
      Name of the project
    • setProject

      public void setProject(String project)
    • getPath

      public String getPath()
      Report path
    • setPath

      public void setPath(String path)
    • getStatus

      public ReportExecutionStatus getStatus()
      Current status
    • setStatus

      public void setStatus(ReportExecutionStatus status)
    • getExecStart

      public Date getExecStart()
      Time the ReportExecutionContext was created
    • setExecStart

      public void setExecStart(Date execStart)
    • getExecFinish

      @Nullable public Date getExecFinish()
    • setExecFinish

      public void setExecFinish(Date execFinish)
    • getTimeElapsed

      public String getTimeElapsed()
      Returns:
      If finished, formatted time between start and finish, otherwise formatted time between start and now.
    • getMillisElapsed

      public long getMillisElapsed()
    • getUuid

      public UUID getUuid()
    • setUuid

      public void setUuid(UUID uuid)
    • isFinishing

      public boolean isFinishing()
    • canCancel

      public boolean canCancel()
    • isCanceled

      public boolean isCanceled()
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • getJson

      @Nonnull public JSONObject getJson() throws JSONException
      Throws:
      JSONException