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 Summary
Fields Modifier and Type Field Description static StringSYNCHROCONTEXTThe identifier used to attach the context to operations.
-
Constructor Summary
Constructors Modifier Constructor Description protectedOperationContext(CSN csn, UUID entryUUID)Create a new OperationContext.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CSNgetCSN()Gets the CSN of the Operation.static CSNgetCSN(PluginOperation op)Get the CSN of an operation from the synchronization context attached to the provided operation.UUIDgetEntryUUID()Get the unique Identifier of the modified entry.inthashCode()
-
-
-
Field Detail
-
SYNCHROCONTEXT
public static final String SYNCHROCONTEXT
The identifier used to attach the context to operations.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-