Class ModifyCommonMsg

    • Field Detail

      • encodedMods

        protected byte[] encodedMods
        The modifications kept encoded in the message.
    • Constructor Detail

      • ModifyCommonMsg

        public ModifyCommonMsg()
        Creates a new ModifyCommonMsg.
      • ModifyCommonMsg

        public ModifyCommonMsg​(OperationContext ctx,
                               DN dn)
        Creates a new ModifyCommonMsg with the given informations.
        Parameters:
        ctx - The replication Context of the operation for which the update message must be created,.
        dn - The DN of the entry on which the change that caused the creation of this object happened
      • ModifyCommonMsg

        public ModifyCommonMsg​(CSN csn,
                               String entryUUID,
                               DN dn)
        Creates a new ModifyCommonMsg with the given informations.
        Parameters:
        csn - The CSN of the operation for which the UpdateMessage is created.
        entryUUID - The Unique identifier of the entry that is updated by the operation for which the UpdateMessage is created.
        dn - The DN of the entry on which the change that caused the creation of this object happened
    • Method Detail

      • setMods

        public void setMods​(List<Modification> mods)
        Set the Modification associated to the UpdateMsg to the provided value.
        Parameters:
        mods - The new Modification associated to this ModifyMsg.
      • encodeMods

        protected byte[] encodeMods​(List<Modification> mods)
        Encode an ArrayList of Modification into a byte[] suitable for storage in a database or send on the network.
        Parameters:
        mods - the ArrayList of Modification to be encoded.
        Returns:
        The encoded modifications.