Class OperationContext

java.lang.Object
org.opends.server.replication.protocol.OperationContext
Direct Known Subclasses:
AddContext, DeleteContext, ModifyContext, ModifyDnContext

public abstract class OperationContext extends Object
This class describe the replication context that is attached to each Operation using the SYNCHROCONTEXT key.
  • Field Details

    • SYNCHROCONTEXT

      public static final String SYNCHROCONTEXT
      The identifier used to attach the context to operations.
      See Also:
  • Constructor Details

    • OperationContext

      protected OperationContext(CSN csn, UUID entryUUID)
      Create a new OperationContext.
      Parameters:
      csn - The CSN of the operation.
      entryUUID - The unique Identifier of the modified entry.
  • Method Details

    • getCSN

      public CSN getCSN()
      Gets the CSN of the Operation.
      Returns:
      The CSN of the Operation.
    • getEntryUUID

      public UUID getEntryUUID()
      Get the unique Identifier of the modified entry.
      Returns:
      the unique Identifier of the modified entry.
    • getCSN

      public static CSN getCSN(PluginOperation op)
      Get the CSN of an operation from the synchronization context attached to the provided operation.
      Parameters:
      op - The operation.
      Returns:
      The CSN of the provided operation, or null if there is no CSN associated with the operation.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object