Class EntryHistorical
java.lang.Object
org.opends.server.replication.plugin.EntryHistorical
Stores historical information that is used to resolve modify conflicts over any attribute of an entry.
It represents the content of the
ds-sync-hist attribute for a whole entry.
It is assumed that the common case is not to have conflict and therefore is optimized (in order of importance) for:
- detecting potential conflict
- fast update of historical information for non-conflicting change
- fast and efficient purge
- compact
- solve conflict. This should also be as fast as possible but not at the cost of any of the other previous objectives
ds-sync-hist attribute must always converge
Note: the content of the ds-sync-hist attribute is considered the same as user data: any divergence in its
content is considered a serious bug that should be fixed immediately.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the attribute used to store historical information. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EntryHistorical(Csn entryAddDate, Csn entryModDnDate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionattributeHistorical(AttributeDescription attrDesc) Return an AttributeHistorical corresponding to the attribute type and options contained in the provided mod, The attributeHistorical is: either read from this EntryHistorical object if one exist, or created empty.Returns the historical information for all attributes.getAttrHistorical(AttributeDescription attributeDescription) Returns the historical information for the named attribute.Returns the CSN of the operation that added this entry.Returns the CSN of the operation that renamed this entry.static UUIDgetEntryUUID(Entry entry) Get the entry unique Id in String form.static EntryHistoricalnewInstanceFromEntry(Entry entry) Construct an Historical object from the provided entry by reading the historical attribute.toString()
-
Field Details
-
DS_SYNC_HIST
Name of the attribute used to store historical information.- See Also:
-
-
Constructor Details
-
EntryHistorical
public EntryHistorical()Default constructor. -
EntryHistorical
-
-
Method Details
-
toString
-
attributeHistorical
Return an AttributeHistorical corresponding to the attribute type and options contained in the provided mod, The attributeHistorical is:- either read from this EntryHistorical object if one exist,
- or created empty.
- Parameters:
attrDesc- the attributeType and options to retrieve/create the attribute historical- Returns:
- the not-
nullattribute historical retrieved or created empty.
-
newInstanceFromEntry
Construct an Historical object from the provided entry by reading the historical attribute. Return an empty object when the entry does not contain any historical attribute.- Parameters:
entry- The entry which historical information must be loaded- Returns:
- The constructed Historical information object
-
getEntryUUID
-
getEntryAddDate
Returns the CSN of the operation that added this entry.- Returns:
- the CSN of the operation that added this entry
-
getEntryModDnDate
Returns the CSN of the operation that renamed this entry.- Returns:
- the CSN of the operation that renamed this entry
-
getAllAttrHistorical
Returns the historical information for all attributes.- Returns:
- the historical information for all attributes
-
getAttrHistorical
Returns the historical information for the named attribute.- Parameters:
attributeDescription- The attribute name.- Returns:
- The historical information for the named attribute, or
nullif there isn't any.
-