Record Class SystemPhysicalLocationStore.Attempt
java.lang.Object
java.lang.Record
ecmwf.common.database.SystemPhysicalLocationStore.Attempt
- Enclosing class:
SystemPhysicalLocationStore
public static record SystemPhysicalLocationStore.Attempt(String machineId, String targetKey, String location, SystemPhysicalLocationStore.Status status, long attemptedAt)
extends Record
Target key is a SHA-256 digest of the configured target identity, never credentials.
-
Constructor Summary
ConstructorsConstructorDescriptionAttempt(String machineId, String targetKey, String location, SystemPhysicalLocationStore.Status status, long attemptedAt) Creates an instance of aAttemptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theattemptedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Returns the value of themachineIdrecord component.status()Returns the value of thestatusrecord component.Returns the value of thetargetKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Attempt
public Attempt(String machineId, String targetKey, String location, SystemPhysicalLocationStore.Status status, long attemptedAt) Creates an instance of aAttemptrecord class.- Parameters:
machineId- the value for themachineIdrecord componenttargetKey- the value for thetargetKeyrecord componentlocation- the value for thelocationrecord componentstatus- the value for thestatusrecord componentattemptedAt- the value for theattemptedAtrecord component
-
-
Method Details
-
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. -
machineId
Returns the value of themachineIdrecord component.- Returns:
- the value of the
machineIdrecord component
-
targetKey
Returns the value of thetargetKeyrecord component.- Returns:
- the value of the
targetKeyrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
attemptedAt
public long attemptedAt()Returns the value of theattemptedAtrecord component.- Returns:
- the value of the
attemptedAtrecord component
-