Class ExtendedStartMsg


  • public final class ExtendedStartMsg
    extends ReplicationMsg
    Added in protocol V10 to exchange additional information during handshake.

    ASN.1 definition of the message is:

     ExtendedStartMsg ::= [APPLICATION 0] CHOICE {
          v10 PayloadV10
     }
    
     PayloadV10 ::= SEQUENCE {
          serverId ::= CHOICE {
               replicaId           [0] IMPLICIT PrintableString
               replicationServerId [1] IMPLICIT PrintableString
          },
          groupId PrintableString,
          processId ::= SEQUENCE OF {
              msb INTEGER,
              lsb INTEGER
          },
          serverState ::= SET OF {
              csn OCTET STRING
          }
     }
     
    • Constructor Detail

      • ExtendedStartMsg

        public ExtendedStartMsg​(ServerId<?> serverId,
                                com.forgerock.opendj.discovery.GroupId groupId,
                                ProcessId processId,
                                ServerState state)
        Constructs an ExtendedStartMsg replication message for sending.
        Parameters:
        serverId - the serverID to send
        groupId - the groupID to send
        processId - the processID to send
        state - the ServerState to send
    • Method Detail

      • 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.
      • getGroupId

        public com.forgerock.opendj.discovery.GroupId getGroupId()
        Returns the groupID in this message.
        Returns:
        the groupID in this message
      • getServerId

        public ServerId<?> getServerId()
        Returns the serverID in this message.
        Returns:
        the serverID in this message
      • getProcessId

        public ProcessId getProcessId()
        Returns the processID in this message.
        Returns:
        the processID in this message
      • getServerState

        public ServerState getServerState()
        Returns the ServerState in this message.
        Returns:
        the ServerState in this message