|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.plugin.AttributeInfo
org.opends.server.replication.plugin.AttrInfoSingle
public class AttrInfoSingle
This classes is used to store historical information for single valued attributes. One object of this type is created for each attribute that was changed in the entry. It allows to record the last time a given value was added, and the last time the whole attribute was deleted.
Constructor Summary | |
---|---|
AttrInfoSingle()
|
Method Summary | |
---|---|
ChangeNumber |
getDeleteTime()
Returns the last time when the attribute was deleted. |
java.util.ArrayList<ValueInfo> |
getValuesInfo()
Get the List of ValueInfo for this attribute Info. |
void |
load(HistKey histKey,
AttributeValue value,
ChangeNumber cn)
Load the provided information. |
void |
processLocalOrNonConflictModification(ChangeNumber changeNumber,
Modification mod)
This method calculate the historical information and update the hist attribute to store the historical information for modify operation that does not conflict with previous operation. |
boolean |
replayOperation(java.util.Iterator<Modification> modsIterator,
ChangeNumber changeNumber,
Entry modifiedEntry,
Modification mod)
This method will be called when replaying an operation. |
Methods inherited from class org.opends.server.replication.plugin.AttributeInfo |
---|
createAttributeInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttrInfoSingle()
Method Detail |
---|
public ChangeNumber getDeleteTime()
getDeleteTime
in class AttributeInfo
public java.util.ArrayList<ValueInfo> getValuesInfo()
getValuesInfo
in class AttributeInfo
public void processLocalOrNonConflictModification(ChangeNumber changeNumber, Modification mod)
processLocalOrNonConflictModification
in class AttributeInfo
changeNumber
- The changeNumber of the operation to processmod
- The modify operation to process.public boolean replayOperation(java.util.Iterator<Modification> modsIterator, ChangeNumber changeNumber, Entry modifiedEntry, Modification mod)
replayOperation
in class AttributeInfo
modsIterator
- The iterator on the mods from which the mod is\
extracted.changeNumber
- The changeNumber associated to the operation.modifiedEntry
- The entry modified by this operation.mod
- The modification.
public void load(HistKey histKey, AttributeValue value, ChangeNumber cn)
load
in class AttributeInfo
histKey
- the key to load.value
- the associated value or null if there is no value;cn
- the associated ChangeNumber.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |