Class StartMsg

  • Direct Known Subclasses:
    ReplServerStartDSMsg, ReplServerStartMsg, ServerStartMsg

    public abstract class StartMsg
    extends ReplicationMsg
    This abstract message class is the superclass for start messages used by LDAP servers and Replication servers to initiate their communications. This class specifies a message header that contains the Replication Protocol version.
    • Field Detail

      • protocolVersion

        protected short protocolVersion
        Protocol version.
      • generationId

        protected long generationId
        Generation id of data set we want to work with.
      • groupId

        protected byte groupId
        Group id of the replicated domain.
    • Constructor Detail

      • StartMsg

        protected StartMsg()
        Create a new StartMsg.
    • Method Detail

      • getVersion

        public short getVersion()
        Get the version included in the Start message mean the replication protocol version used by the server that created the message.
        Returns:
        The version used by the server that created the message.
      • getGenerationId

        public long getGenerationId()
        Get the generationId from this message.
        Returns:
        The generationId.
      • getGroupId

        public byte getGroupId()
        Get the group id in this message.
        Returns:
        The group id in this message
      • setGroupId

        public void setGroupId​(byte groupId)
        Set the group id in this message (For test purpose).
        Parameters:
        groupId - The group id to set.