Class InitializeRequestMsg


  • public final class InitializeRequestMsg
    extends InitializationMsg
    This message is part of the replication protocol. This message is sent by a server to another server in order to request this other server to do an export to the server sender of this message.
    • Constructor Detail

      • InitializeRequestMsg

        public InitializeRequestMsg​(Dn baseDN,
                                    ReplicaId replicaId,
                                    ReplicaId destination,
                                    int initWindow)
        Creates a InitializeRequestMsg message.
        Parameters:
        baseDN - the base DN of the replication domain.
        destination - destination of this message
        replicaId - replica id of the server that will send this message
        initWindow - initialization window for flow control
    • Method Detail

      • getBaseDN

        public Dn getBaseDN()
        Get the base DN from this InitializeRequestMsg.
        Returns:
        the base DN from this InitializeRequestMsg.
      • getBytes

        public byte[] getBytes​(short version)
        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:
        version - 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.
      • toString

        public String toString()
        Get a string representation of this object.
        Overrides:
        toString in class InitializationMsg
        Returns:
        A string representation of this object.
      • getInitWindow

        public int getInitWindow()
        Return the initWindow value.
        Returns:
        the initWindow.
      • setInitWindow

        public void setInitWindow​(int initWindow)
        Set the initWindow value.
        Parameters:
        initWindow - The initialization window.