Record Class SystemPhysicalLocationStore.Snapshot
java.lang.Object
java.lang.Record
ecmwf.common.database.SystemPhysicalLocationStore.Snapshot
- All Implemented Interfaces:
Serializable
- Enclosing class:
SystemPhysicalLocationStore
public static record SystemPhysicalLocationStore.Snapshot(String machineId, String targetKey, String location, SystemPhysicalLocationStore.Status status, long lastSuccess, long lastAttempt)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(String machineId, String targetKey, String location, SystemPhysicalLocationStore.Status status, long lastSuccess, long lastAttempt) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastAttemptrecord component.longReturns the value of thelastSuccessrecord component.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
-
Snapshot
public Snapshot(String machineId, String targetKey, String location, SystemPhysicalLocationStore.Status status, long lastSuccess, long lastAttempt) Creates an instance of aSnapshotrecord class.- Parameters:
machineId- the value for themachineIdrecord componenttargetKey- the value for thetargetKeyrecord componentlocation- the value for thelocationrecord componentstatus- the value for thestatusrecord componentlastSuccess- the value for thelastSuccessrecord componentlastAttempt- the value for thelastAttemptrecord 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
-
lastSuccess
public long lastSuccess()Returns the value of thelastSuccessrecord component.- Returns:
- the value of the
lastSuccessrecord component
-
lastAttempt
public long lastAttempt()Returns the value of thelastAttemptrecord component.- Returns:
- the value of the
lastAttemptrecord component
-