Record Class ConsensusBackup.Metadata
java.lang.Object
java.lang.Record
org.j7m.middleware.consensus.ConsensusBackup.Metadata
- Record Components:
schema- explicit application snapshot schema identifiersourceGroup- source consensus generation identitysourceNode- exporting node identityindex- captured committed/applied indexincludedTerm- term of captured last entrycurrentTerm- exporting node's current durable termconfigurationEpoch- committed electorate epochmembers- committed voter identitiesjointMembers- joint-transition voter identities, empty when stablerequestIdentities- retained client deduplication identitiesstateBytes- application state bytescheckpointSha256- checksum binding electorate, identity journal and application state
- Enclosing class:
ConsensusBackup
public static record ConsensusBackup.Metadata(String schema, String sourceGroup, String sourceNode, long index, long includedTerm, long currentTerm, long configurationEpoch, Set<String> members, Set<String> jointMembers, int requestIdentities, int stateBytes, String checkpointSha256)
extends Record
Immutable verified recovery metadata; resource internals remain opaque.
-
Constructor Summary
ConstructorsConstructorDescriptionMetadata(String schema, String sourceGroup, String sourceNode, long index, long includedTerm, long currentTerm, long configurationEpoch, Set<String> members, Set<String> jointMembers, int requestIdentities, int stateBytes, String checkpointSha256) Copies immutable voter sets. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointSha256record component.longReturns the value of theconfigurationEpochrecord component.longReturns the value of thecurrentTermrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theincludedTermrecord component.longindex()Returns the value of theindexrecord component.Returns the value of thejointMembersrecord component.members()Returns the value of themembersrecord component.intReturns the value of therequestIdentitiesrecord component.schema()Returns the value of theschemarecord component.Returns the value of thesourceGrouprecord component.Returns the value of thesourceNoderecord component.intReturns the value of thestateBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metadata
-
-
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. -
schema
-
sourceGroup
Returns the value of thesourceGrouprecord component.- Returns:
- the value of the
sourceGrouprecord component
-
sourceNode
Returns the value of thesourceNoderecord component.- Returns:
- the value of the
sourceNoderecord component
-
index
-
includedTerm
public long includedTerm()Returns the value of theincludedTermrecord component.- Returns:
- the value of the
includedTermrecord component
-
currentTerm
public long currentTerm()Returns the value of thecurrentTermrecord component.- Returns:
- the value of the
currentTermrecord component
-
configurationEpoch
public long configurationEpoch()Returns the value of theconfigurationEpochrecord component.- Returns:
- the value of the
configurationEpochrecord component
-
members
-
jointMembers
Returns the value of thejointMembersrecord component.- Returns:
- the value of the
jointMembersrecord component
-
requestIdentities
public int requestIdentities()Returns the value of therequestIdentitiesrecord component.- Returns:
- the value of the
requestIdentitiesrecord component
-
stateBytes
public int stateBytes()Returns the value of thestateBytesrecord component.- Returns:
- the value of the
stateBytesrecord component
-
checkpointSha256
Returns the value of thecheckpointSha256record component.- Returns:
- the value of the
checkpointSha256record component
-