Class FakeDelOperation


  • public class FakeDelOperation
    extends FakeOperation
    This class if used to build pseudo DEL Operation from the historical information that stay in the entry in the database. This is useful when a LDAP server can't find a LDAP server that has already seen all its changes and therefore need to retransmit them.
    • Constructor Detail

      • FakeDelOperation

        public FakeDelOperation​(DN dn,
                                CSN csn,
                                String entryUUID)
        Creates a new FakeDelOperation from the provided information.
        Parameters:
        dn - The dn of the entry that was deleted.
        csn - The CSN of the operation.
        entryUUID - The Unique ID of the deleted entry.
    • Method Detail

      • generateMessage

        public ReplicationMsg generateMessage()
        Generate a ReplicationMsg from this fake operation. The ReplicationMsg is used to send the informations about this operation to the other servers.
        Specified by:
        generateMessage in class FakeOperation
        Returns:
        A ReplicationMsg that can be used to send information about this operation to remote servers.
      • getEntryUUID

        public String getEntryUUID()
        Retrieves the Unique ID of the entry that was deleted with this operation.
        Returns:
        The Unique ID of the entry that was deleted with this operation.