Class FakeModifyOperation
- java.lang.Object
-
- org.opends.server.replication.plugin.FakeOperation
-
- org.opends.server.replication.plugin.FakeModifyOperation
-
public class FakeModifyOperation extends FakeOperation
This class if used to build fake Modify 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 Summary
Constructors Constructor Description FakeModifyOperation(DN dn, CSN csn, String entryuuid)Creates a new ModifyFakeOperation with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModification(Modification mod)Add a modification to the list of modification included in this fake operation.ReplicationMsggenerateMessage()Generate a ReplicationMsg from this fake operation.-
Methods inherited from class org.opends.server.replication.plugin.FakeOperation
getCSN
-
-
-
-
Constructor Detail
-
FakeModifyOperation
public FakeModifyOperation(DN dn, CSN csn, String entryuuid)
Creates a new ModifyFakeOperation with the provided information.- Parameters:
dn- The DN on which the Operation was applied.csn- The CSN of the operation.entryuuid- The unique ID of the entry on which the Operation applies.
-
-
Method Detail
-
addModification
public void addModification(Modification mod)
Add a modification to the list of modification included in this fake operation.- Parameters:
mod- A modification that must be added to the list of modifications included in this fake operation.
-
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:
generateMessagein classFakeOperation- Returns:
- A ReplicationMsg that can be used to send information about this operation to remote servers.
-
-