Record Class PhysicalLocationConfig

java.lang.Object
java.lang.Record
ecmwf.ecpds.master.location.PhysicalLocationConfig

public record PhysicalLocationConfig(boolean enabled, long interval, long staleAfter, long timeout, int retries, int concurrency, Map<String,String> systems, Map<String, PhysicalLocationConfig.Machine> machines, int maxTargets, PhysicalLocationConfig.Discovery discovery) extends Record
Startup policy and credentials; automatic targets are reconciled separately in the background.
  • Constructor Details

    • PhysicalLocationConfig

      public PhysicalLocationConfig(boolean enabled, long interval, long staleAfter, long timeout, int retries, int concurrency, Map<String,String> systems, Map<String, PhysicalLocationConfig.Machine> machines)
    • PhysicalLocationConfig

      public PhysicalLocationConfig(boolean enabled, long interval, long staleAfter, long timeout, int retries, int concurrency, Map<String,String> systems, Map<String, PhysicalLocationConfig.Machine> machines, int maxTargets, PhysicalLocationConfig.Discovery discovery)
      Creates an instance of a PhysicalLocationConfig record class.
      Parameters:
      enabled - the value for the enabled record component
      interval - the value for the interval record component
      staleAfter - the value for the staleAfter record component
      timeout - the value for the timeout record component
      retries - the value for the retries record component
      concurrency - the value for the concurrency record component
      systems - the value for the systems record component
      machines - the value for the machines record component
      maxTargets - the value for the maxTargets record component
      discovery - the value for the discovery record component
  • Method Details

    • disabled

      public static PhysicalLocationConfig disabled()
    • load

      public static PhysicalLocationConfig load() throws Exception
      Throws:
      Exception
    • 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.
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • interval

      public long interval()
      Returns the value of the interval record component.
      Returns:
      the value of the interval record component
    • staleAfter

      public long staleAfter()
      Returns the value of the staleAfter record component.
      Returns:
      the value of the staleAfter record component
    • timeout

      public long timeout()
      Returns the value of the timeout record component.
      Returns:
      the value of the timeout record component
    • retries

      public int retries()
      Returns the value of the retries record component.
      Returns:
      the value of the retries record component
    • concurrency

      public int concurrency()
      Returns the value of the concurrency record component.
      Returns:
      the value of the concurrency record component
    • systems

      public Map<String,String> systems()
      Returns the value of the systems record component.
      Returns:
      the value of the systems record component
    • machines

      Returns the value of the machines record component.
      Returns:
      the value of the machines record component
    • maxTargets

      public int maxTargets()
      Returns the value of the maxTargets record component.
      Returns:
      the value of the maxTargets record component
    • discovery

      Returns the value of the discovery record component.
      Returns:
      the value of the discovery record component