Record Class HotBackupManager.HotBackupMetadata
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.HotBackupManager.HotBackupMetadata
- Enclosing class:
HotBackupManager
-
Constructor Summary
ConstructorsConstructorDescriptionHotBackupMetadata(String nodeId, Path backupDirectory, Path manifestPath, long createdAtMillis, List<HotBackupManager.BackupFile> files) Creates an instance of aHotBackupMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackupDirectoryrecord component.longReturns the value of thecreatedAtMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themanifestPathrecord component.nodeId()Returns the value of thenodeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HotBackupMetadata
public HotBackupMetadata(String nodeId, Path backupDirectory, Path manifestPath, long createdAtMillis, List<HotBackupManager.BackupFile> files) Creates an instance of aHotBackupMetadatarecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentbackupDirectory- the value for thebackupDirectoryrecord componentmanifestPath- the value for themanifestPathrecord componentcreatedAtMillis- the value for thecreatedAtMillisrecord componentfiles- the value for thefilesrecord 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. -
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
backupDirectory
Returns the value of thebackupDirectoryrecord component.- Returns:
- the value of the
backupDirectoryrecord component
-
manifestPath
Returns the value of themanifestPathrecord component.- Returns:
- the value of the
manifestPathrecord component
-
createdAtMillis
public long createdAtMillis()Returns the value of thecreatedAtMillisrecord component.- Returns:
- the value of the
createdAtMillisrecord component
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-