Record Class WeatherLimits

java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherLimits
All Implemented Interfaces:
Serializable

public record WeatherLimits(int maxSources, int maxSelectedPaths, int maxCandidates, int maxProbePolicies, int maxHostChoices, int maxConfigurationBytes) extends Record implements Serializable
Deployment limits are owned by the Master and included in administrator snapshots.
See Also:
  • Constructor Details

    • WeatherLimits

      public WeatherLimits(int maxSources, int maxSelectedPaths, int maxCandidates, int maxProbePolicies, int maxHostChoices, int maxConfigurationBytes)
      Creates an instance of a WeatherLimits record class.
      Parameters:
      maxSources - the value for the maxSources record component
      maxSelectedPaths - the value for the maxSelectedPaths record component
      maxCandidates - the value for the maxCandidates record component
      maxProbePolicies - the value for the maxProbePolicies record component
      maxHostChoices - the value for the maxHostChoices record component
      maxConfigurationBytes - the value for the maxConfigurationBytes record component
  • Method Details

    • configured

      public static WeatherLimits configured()
    • controlResponseBytes

      public static int controlResponseBytes()
    • validateSelection

      public void validateSelection(Set<WeatherObservation.Path> paths)
    • validatePolicy

      public void validatePolicy(WeatherAutomation.Configuration policy)
    • 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. All components in this record class 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.
    • maxSources

      public int maxSources()
      Returns the value of the maxSources record component.
      Returns:
      the value of the maxSources record component
    • maxSelectedPaths

      public int maxSelectedPaths()
      Returns the value of the maxSelectedPaths record component.
      Returns:
      the value of the maxSelectedPaths record component
    • maxCandidates

      public int maxCandidates()
      Returns the value of the maxCandidates record component.
      Returns:
      the value of the maxCandidates record component
    • maxProbePolicies

      public int maxProbePolicies()
      Returns the value of the maxProbePolicies record component.
      Returns:
      the value of the maxProbePolicies record component
    • maxHostChoices

      public int maxHostChoices()
      Returns the value of the maxHostChoices record component.
      Returns:
      the value of the maxHostChoices record component
    • maxConfigurationBytes

      public int maxConfigurationBytes()
      Returns the value of the maxConfigurationBytes record component.
      Returns:
      the value of the maxConfigurationBytes record component