Record Class SealManifest
java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.surveyaction.seal.SealManifest
- Record Components:
manifestVersion- version of the manifest formatsealedElementGUID- unique identifier of the element that describes the sealed contentrootPathName- path name of the sealed file or directory, as it is cataloguedalgorithm- algorithm used to hash the content of each membersealedTime- when the content was sealed (ISO 8601)sealedBy- who, or what, sealed the contentmemberCount- number of memberstotalSize- total size of the members in bytesmembers- the members, in path order
public record SealManifest(int manifestVersion, String sealedElementGUID, String rootPathName, String algorithm, String sealedTime, String sealedBy, long memberCount, long totalSize, List<SealManifestMember> members)
extends Record
SealManifest lists the members of sealed content as they were when the content was sealed. It is written
once, to a file outside the sealed content, and never changed. The Sealed classification on the element
that describes the content holds the location of the manifest file and the hash of its bytes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe version of the manifest format written by this release. -
Constructor Summary
ConstructorsConstructorDescriptionSealManifest(int manifestVersion, String sealedElementGUID, String rootPathName, String algorithm, String sealedTime, String sealedBy, long memberCount, long totalSize, List<SealManifestMember> members) Creates an instance of aSealManifestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themanifestVersionrecord component.longReturns the value of thememberCountrecord component.members()Returns the value of themembersrecord component.Returns the value of therootPathNamerecord component.sealedBy()Returns the value of thesealedByrecord component.Returns the value of thesealedElementGUIDrecord component.Returns the value of thesealedTimerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalSizerecord component.
-
Field Details
-
CURRENT_VERSION
public static final int CURRENT_VERSIONThe version of the manifest format written by this release.- See Also:
-
-
Constructor Details
-
SealManifest
public SealManifest(int manifestVersion, String sealedElementGUID, String rootPathName, String algorithm, String sealedTime, String sealedBy, long memberCount, long totalSize, List<SealManifestMember> members) Creates an instance of aSealManifestrecord class.- Parameters:
manifestVersion- the value for themanifestVersionrecord componentsealedElementGUID- the value for thesealedElementGUIDrecord componentrootPathName- the value for therootPathNamerecord componentalgorithm- the value for thealgorithmrecord componentsealedTime- the value for thesealedTimerecord componentsealedBy- the value for thesealedByrecord componentmemberCount- the value for thememberCountrecord componenttotalSize- the value for thetotalSizerecord componentmembers- the value for themembersrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
manifestVersion
public int manifestVersion()Returns the value of themanifestVersionrecord component.- Returns:
- the value of the
manifestVersionrecord component
-
sealedElementGUID
Returns the value of thesealedElementGUIDrecord component.- Returns:
- the value of the
sealedElementGUIDrecord component
-
rootPathName
Returns the value of therootPathNamerecord component.- Returns:
- the value of the
rootPathNamerecord component
-
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
sealedTime
Returns the value of thesealedTimerecord component.- Returns:
- the value of the
sealedTimerecord component
-
sealedBy
Returns the value of thesealedByrecord component.- Returns:
- the value of the
sealedByrecord component
-
memberCount
public long memberCount()Returns the value of thememberCountrecord component.- Returns:
- the value of the
memberCountrecord component
-
totalSize
public long totalSize()Returns the value of thetotalSizerecord component.- Returns:
- the value of the
totalSizerecord component
-
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-