org.opends.server.replication.plugin
Class ModifyFakeOperation

java.lang.Object
  extended by org.opends.server.replication.plugin.FakeOperation
      extended by org.opends.server.replication.plugin.ModifyFakeOperation

public class ModifyFakeOperation
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 usefull when a LDAP server can't find a LDAP server that has already seen all its changes and therefore need to retransmit them

Author:
Gilles Bellaton

Constructor Summary
ModifyFakeOperation(DN dn, ChangeNumber changenumber, java.lang.String entryuuid)
          Creates a new ModifyFakeOperation with the provided information.
 
Method Summary
 void addModification(Modification mod)
          Add a modification to the list of modification included in this fake operation.
 ReplicationMessage generateMessage()
          Generate a ReplicationMessage from this fake operation.
 
Methods inherited from class org.opends.server.replication.plugin.FakeOperation
getChangeNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifyFakeOperation

public ModifyFakeOperation(DN dn,
                           ChangeNumber changenumber,
                           java.lang.String entryuuid)
Creates a new ModifyFakeOperation with the provided information.

Parameters:
dn - The dn on which the Operation was applied.
changenumber - The ChangeNumber 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.

Specified by:
addModification in class FakeOperation
Parameters:
mod - A modification that must be adde to the list of modifications included in this fake operation.

generateMessage

public ReplicationMessage generateMessage()
Generate a ReplicationMessage from this fake operation. The ReplicationMessage is used to send the informations about this operation to the other servers.

Specified by:
generateMessage in class FakeOperation
Returns:
A ReplicationMessage that can be used to send information about this operation to remote servers.