Record Class ConsensusBackup.Metadata

java.lang.Object
java.lang.Record
org.j7m.middleware.consensus.ConsensusBackup.Metadata
Record Components:
schema - explicit application snapshot schema identifier
sourceGroup - source consensus generation identity
sourceNode - exporting node identity
index - captured committed/applied index
includedTerm - term of captured last entry
currentTerm - exporting node's current durable term
configurationEpoch - committed electorate epoch
members - committed voter identities
jointMembers - joint-transition voter identities, empty when stable
requestIdentities - retained client deduplication identities
stateBytes - application state bytes
checkpointSha256 - 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 Details

    • Metadata

      public 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)
      Copies immutable voter sets.
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schema

      public String schema()
      Returns the value of the schema record component.
      Returns:
      the value of the schema record component
    • sourceGroup

      public String sourceGroup()
      Returns the value of the sourceGroup record component.
      Returns:
      the value of the sourceGroup record component
    • sourceNode

      public String sourceNode()
      Returns the value of the sourceNode record component.
      Returns:
      the value of the sourceNode record component
    • index

      public long index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component
    • includedTerm

      public long includedTerm()
      Returns the value of the includedTerm record component.
      Returns:
      the value of the includedTerm record component
    • currentTerm

      public long currentTerm()
      Returns the value of the currentTerm record component.
      Returns:
      the value of the currentTerm record component
    • configurationEpoch

      public long configurationEpoch()
      Returns the value of the configurationEpoch record component.
      Returns:
      the value of the configurationEpoch record component
    • members

      public Set<String> members()
      Returns the value of the members record component.
      Returns:
      the value of the members record component
    • jointMembers

      public Set<String> jointMembers()
      Returns the value of the jointMembers record component.
      Returns:
      the value of the jointMembers record component
    • requestIdentities

      public int requestIdentities()
      Returns the value of the requestIdentities record component.
      Returns:
      the value of the requestIdentities record component
    • stateBytes

      public int stateBytes()
      Returns the value of the stateBytes record component.
      Returns:
      the value of the stateBytes record component
    • checkpointSha256

      public String checkpointSha256()
      Returns the value of the checkpointSha256 record component.
      Returns:
      the value of the checkpointSha256 record component