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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionPhysicalLocationConfig(boolean enabled, long interval, long staleAfter, long timeout, int retries, int concurrency, Map<String, String> systems, Map<String, PhysicalLocationConfig.Machine> machines) 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 aPhysicalLocationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconcurrencyrecord component.static PhysicalLocationConfigdisabled()Returns the value of thediscoveryrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longinterval()Returns the value of theintervalrecord component.static PhysicalLocationConfigload()machines()Returns the value of themachinesrecord component.intReturns the value of themaxTargetsrecord component.intretries()Returns the value of theretriesrecord component.longReturns the value of thestaleAfterrecord component.systems()Returns the value of thesystemsrecord component.longtimeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PhysicalLocationConfig
-
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 aPhysicalLocationConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentinterval- the value for theintervalrecord componentstaleAfter- the value for thestaleAfterrecord componenttimeout- the value for thetimeoutrecord componentretries- the value for theretriesrecord componentconcurrency- the value for theconcurrencyrecord componentsystems- the value for thesystemsrecord componentmachines- the value for themachinesrecord componentmaxTargets- the value for themaxTargetsrecord componentdiscovery- the value for thediscoveryrecord component
-
-
Method Details
-
disabled
-
load
- Throws:
Exception
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
interval
public long interval()Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
staleAfter
public long staleAfter()Returns the value of thestaleAfterrecord component.- Returns:
- the value of the
staleAfterrecord component
-
timeout
public long timeout()Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
retries
public int retries()Returns the value of theretriesrecord component.- Returns:
- the value of the
retriesrecord component
-
concurrency
public int concurrency()Returns the value of theconcurrencyrecord component.- Returns:
- the value of the
concurrencyrecord component
-
systems
-
machines
Returns the value of themachinesrecord component.- Returns:
- the value of the
machinesrecord component
-
maxTargets
public int maxTargets()Returns the value of themaxTargetsrecord component.- Returns:
- the value of the
maxTargetsrecord component
-
discovery
Returns the value of thediscoveryrecord component.- Returns:
- the value of the
discoveryrecord component
-