Class ResetGenerationIdMsg

java.lang.Object
org.opends.server.replication.protocol.ReplicationMsg
org.opends.server.replication.protocol.ResetGenerationIdMsg

public final class ResetGenerationIdMsg extends ReplicationMsg
This message is used by an LDAP server to communicate to the topology that the generation must be reset for the domain.
  • Constructor Details

    • ResetGenerationIdMsg

      public ResetGenerationIdMsg(GenerationId generationId)
      Creates a new message.
      Parameters:
      generationId - The new reference value of the generationID.
  • Method Details

    • getBytes

      public byte[] getBytes(short protocolVersion)
      Description copied from class: ReplicationMsg
      Serializes the PDU using the provided replication protocol version. WARNING: should be overwritten by a PDU (sub class) we want to support older protocol version serialization for.
      Specified by:
      getBytes in class ReplicationMsg
      Parameters:
      protocolVersion - The protocol version to use for serialization. The version should normally be older than the current one.
      Returns:
      The encoded PDU, or null if the message isn't supported in that protocol version.
    • getGenerationId

      public GenerationId getGenerationId()
      Returns the generation Id set in this message.
      Returns:
      the value of the generation ID.
    • toString

      public String toString()
      Overrides:
      toString in class Object