|
|||||||||
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.AttrInfoMultiple
public class AttrInfoMultiple
This classes is used to store historical information for multiple 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, the last time a given value was deleted and the last time the whole attribute was deleted.
Constructor Summary | |
---|---|
AttrInfoMultiple()
create a new empty AttrInfo object. |
|
AttrInfoMultiple(ChangeNumber deleteTime,
ChangeNumber updateTime,
java.util.ArrayList<ValueInfo> valuesInfo)
create a new AttrInfo object. |
Method Summary | |
---|---|
protected void |
add(AttributeValue val,
ChangeNumber CN)
Update the historical information when a value is added. |
protected void |
delete(AttributeValue val,
ChangeNumber CN)
Change historical information after a delete value. |
protected void |
delete(ChangeNumber CN)
Delete all historical information that is older than the provided ChangeNumber for this attribute type. |
protected void |
delete(java.util.LinkedHashSet<AttributeValue> values,
ChangeNumber CN)
Change historical information after a delete of a set of values. |
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 m)
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 AttrInfoMultiple(ChangeNumber deleteTime, ChangeNumber updateTime, java.util.ArrayList<ValueInfo> valuesInfo)
deleteTime
- the deletion timeupdateTime
- the update timevaluesInfo
- of Value Infopublic AttrInfoMultiple()
Method Detail |
---|
public ChangeNumber getDeleteTime()
getDeleteTime
in class AttributeInfo
protected void delete(ChangeNumber CN)
CN
- time when the delete was doneprotected void delete(AttributeValue val, ChangeNumber CN)
val
- value that was deletedCN
- time when the delete was doneprotected void delete(java.util.LinkedHashSet<AttributeValue> values, ChangeNumber CN)
values
- values that were deletedCN
- time when the delete was doneprotected void add(AttributeValue val, ChangeNumber CN)
val
- values that was addedCN
- time when the value was addedpublic java.util.ArrayList<ValueInfo> getValuesInfo()
getValuesInfo
in class AttributeInfo
public boolean replayOperation(java.util.Iterator<Modification> modsIterator, ChangeNumber changeNumber, Entry modifiedEntry, Modification m)
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.m
- The modification.
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 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 |