Record Class WeatherAutomation.Status

java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherAutomation.Status
All Implemented Interfaces:
Serializable
Enclosing class:
WeatherAutomation

public static record WeatherAutomation.Status(WeatherAutomation.Configuration configuration, long lastAttempt, long lastSuccess, long nextRun, int rows, int pages, boolean partial, String error, List<String> changes, boolean loaded, boolean running, int candidates, int added, int removed, List<WeatherDiscoveryStore.RejectedHost> rejectedHosts) extends Record implements Serializable
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Status(WeatherAutomation.Configuration configuration, long lastAttempt, long lastSuccess, long nextRun, int rows, int pages, boolean partial, String error, List<String> changes, boolean loaded, boolean running, int candidates, int added, int removed, List<WeatherDiscoveryStore.RejectedHost> rejectedHosts)
    Creates an instance of a Status record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the added record component.
    int
    Returns the value of the candidates record component.
    Returns the value of the changes record component.
    Returns the value of the configuration record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the error record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the lastAttempt record component.
    long
    Returns the value of the lastSuccess record component.
    boolean
    Returns the value of the loaded record component.
    long
    Returns the value of the nextRun record component.
    int
    Returns the value of the pages record component.
    boolean
    Returns the value of the partial record component.
    Returns the value of the rejectedHosts record component.
    int
    Returns the value of the removed record component.
    int
    Returns the value of the rows record component.
    boolean
    Returns the value of the running record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Status

      public Status(WeatherAutomation.Configuration configuration, long lastAttempt, long lastSuccess, long nextRun, int rows, int pages, boolean partial, String error, List<String> changes, boolean loaded, boolean running, int candidates, int added, int removed, List<WeatherDiscoveryStore.RejectedHost> rejectedHosts)
      Creates an instance of a Status record class.
      Parameters:
      configuration - the value for the configuration record component
      lastAttempt - the value for the lastAttempt record component
      lastSuccess - the value for the lastSuccess record component
      nextRun - the value for the nextRun record component
      rows - the value for the rows record component
      pages - the value for the pages record component
      partial - the value for the partial record component
      error - the value for the error record component
      changes - the value for the changes record component
      loaded - the value for the loaded record component
      running - the value for the running record component
      candidates - the value for the candidates record component
      added - the value for the added record component
      removed - the value for the removed record component
      rejectedHosts - the value for the rejectedHosts record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • configuration

      public WeatherAutomation.Configuration configuration()
      Returns the value of the configuration record component.
      Returns:
      the value of the configuration record component
    • lastAttempt

      public long lastAttempt()
      Returns the value of the lastAttempt record component.
      Returns:
      the value of the lastAttempt record component
    • lastSuccess

      public long lastSuccess()
      Returns the value of the lastSuccess record component.
      Returns:
      the value of the lastSuccess record component
    • nextRun

      public long nextRun()
      Returns the value of the nextRun record component.
      Returns:
      the value of the nextRun record component
    • rows

      public int rows()
      Returns the value of the rows record component.
      Returns:
      the value of the rows record component
    • pages

      public int pages()
      Returns the value of the pages record component.
      Returns:
      the value of the pages record component
    • partial

      public boolean partial()
      Returns the value of the partial record component.
      Returns:
      the value of the partial record component
    • error

      public String error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • changes

      public List<String> changes()
      Returns the value of the changes record component.
      Returns:
      the value of the changes record component
    • loaded

      public boolean loaded()
      Returns the value of the loaded record component.
      Returns:
      the value of the loaded record component
    • running

      public boolean running()
      Returns the value of the running record component.
      Returns:
      the value of the running record component
    • candidates

      public int candidates()
      Returns the value of the candidates record component.
      Returns:
      the value of the candidates record component
    • added

      public int added()
      Returns the value of the added record component.
      Returns:
      the value of the added record component
    • removed

      public int removed()
      Returns the value of the removed record component.
      Returns:
      the value of the removed record component
    • rejectedHosts

      public List<WeatherDiscoveryStore.RejectedHost> rejectedHosts()
      Returns the value of the rejectedHosts record component.
      Returns:
      the value of the rejectedHosts record component