org.opends.server.replication.protocol
Class OperationContext

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

public abstract class OperationContext
extends java.lang.Object

This class describe the replication context that is attached to each Operation using the SYNCHROCONTEXT key.


Field Summary
static java.lang.String SYNCHROCONTEXT
          The identifier used to attach the context to operations.
 
Constructor Summary
protected OperationContext(ChangeNumber changeNumber, java.lang.String uid)
          Create a new OperationContext.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 ChangeNumber getChangeNumber()
          Gets The change number of the Operation.
static ChangeNumber getChangeNumber(Operation op)
          Get the change number of an operation.
static ChangeNumber getChangeNumber(PluginOperation op)
          Get the change number of an operation.
 java.lang.String getEntryUid()
          Get the unique Identifier of the modified entry.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNCHROCONTEXT

public static final java.lang.String SYNCHROCONTEXT
The identifier used to attach the context to operations.

See Also:
Constant Field Values
Constructor Detail

OperationContext

protected OperationContext(ChangeNumber changeNumber,
                           java.lang.String uid)
Create a new OperationContext.

Parameters:
changeNumber - The change number of the operation.
uid - The unique Identifier of the modified entry.
Method Detail

getChangeNumber

public ChangeNumber getChangeNumber()
Gets The change number of the Operation.

Returns:
The change number of the Operation.

getEntryUid

public java.lang.String getEntryUid()
Get the unique Identifier of the modified entry.

Returns:
the unique Identifier of the modified entry.

getChangeNumber

public static ChangeNumber getChangeNumber(Operation op)
Get the change number of an operation.

Parameters:
op - The operation.
Returns:
The change number of the provided operation, or null if there is no change number associated with the operation.

getChangeNumber

public static ChangeNumber getChangeNumber(PluginOperation op)
Get the change number of an operation.

Parameters:
op - The operation.
Returns:
The change number of the provided operation, or null if there is no change number associated with the operation.

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object