Class ECpdsApplication.ProductStepStatusForREST

java.lang.Object
ecmwf.ecpds.master.plugin.service.ECpdsApplication.ProductStepStatusForREST
Enclosing class:
ECpdsApplication

protected static class ECpdsApplication.ProductStepStatusForREST extends Object
The Class ProductStepStatusForREST. This class is used to encapsulate the ProductStepStatus class into a front end class to show only the required fields with the dates converted in to the number of seconds since ecpoch.
  • Method Details

    • getProduct

      public String getProduct()
      Gets the product.
      Returns:
      the product
    • getTime

      public String getTime()
      Gets the time.
      Returns:
      the time
    • getBuffer

      public long getBuffer()
      Gets the buffer.
      Returns:
      the buffer
    • getStep

      public long getStep()
      Gets the step.
      Returns:
      the step
    • getType

      public String getType()
      Gets the type.
      Returns:
      the type
    • getArrivalTime

      public Long getArrivalTime()
      Gets the arrival time.
      Returns:
      the arrival time
    • getStatus

      public String getStatus()
      Gets the status.
      Returns:
      the status
    • getStatusCode

      public String getStatusCode()
      Gets the raw generation status code (e.g. "DONE", "INIT", or blank if not yet known) - as opposed to getStatus() which returns the human-friendly label shown in the web interface.
      Returns:
      the status code
    • getStatusLevel

      public int getStatusLevel()
      Gets the numeric generation status level used to colour the status dot in the web interface (see GenerationMonitoringStatus.STATUS_* constants: -1 none, 1..4 on schedule/ahead by decreasing margin, 5 not received).
      Returns:
      the status level
    • getMinutesBeforeSchedule

      public long getMinutesBeforeSchedule()
      Gets the minutes before schedule.
      Returns:
      the minutes before schedule
    • getScheduledTime

      public Long getScheduledTime()
      Gets the scheduled time.
      Returns:
      the scheduled time
    • getLastUpdate

      public Long getLastUpdate()
      Gets the last update time.
      Returns:
      the last update time
    • getProductTime

      public Long getProductTime()
      Gets the product time.
      Returns:
      the product time