Class FakeAddOperation


  • public class FakeAddOperation
    extends FakeOperation
    This class if used to build fake ADD 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

      • FakeAddOperation

        public FakeAddOperation​(CSN csn,
                                Entry entry)
        Creates a new AddFakeOperations.
        Parameters:
        csn - The CSN when the entry was created.
        entry - The entry that the ADD operation will create.
    • Method Detail

      • generateMessage

        public AddMsg generateMessage()
        Description copied from class: FakeOperation
        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.