Class ModifyMsg

    • Constructor Detail

      • ModifyMsg

        public ModifyMsg​(CSN csn,
                         DN dn,
                         List<Modification> mods,
                         String entryUUID)
        Creates a new Modify message using the provided information.
        Parameters:
        csn - The CSN for the operation.
        dn - The baseDN of the operation.
        mods - The mod of the operation.
        entryUUID - The unique id of the entry on which the modification needs to apply.
    • Method Detail

      • size

        public int size()
        Return the number of bytes used by this message.
        Specified by:
        size in class LDAPUpdateMsg
        Returns:
        The number of bytes used by this message.
      • getBytes_V1

        public byte[] getBytes_V1()
        Get the byte array representation of this message. This uses the version 1 of the replication protocol (used for compatibility purpose).
        Specified by:
        getBytes_V1 in class LDAPUpdateMsg
        Returns:
        The byte array representation of this message.
      • getBytes_V23

        public byte[] getBytes_V23()
        Get the byte array representation of this message. This uses the version 2 of the replication protocol (used for compatibility purpose).
        Specified by:
        getBytes_V23 in class LDAPUpdateMsg
        Returns:
        The byte array representation of this message.
      • getBytes_V45

        public byte[] getBytes_V45​(short protocolVersion)
        Get the byte array representation of this message. This uses the provided version number which must be version 4 or newer.
        Specified by:
        getBytes_V45 in class LDAPUpdateMsg
        Parameters:
        protocolVersion - the actual protocol version to encode into
        Returns:
        The byte array representation of this Message.