|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.plugin.AttributeInfo
public abstract class AttributeInfo
This classes is used to store historical information. One object of this type is created for each attribute that was changed in the entry.
Constructor Summary | |
---|---|
AttributeInfo()
|
Method Summary | |
---|---|
static AttributeInfo |
createAttributeInfo(AttributeType type)
Create a new AttributeInfo object that will be used with the givene type. |
abstract ChangeNumber |
getDeleteTime()
Returns the last time when the attribute was deleted. |
abstract java.util.ArrayList<ValueInfo> |
getValuesInfo()
Get the List of ValueInfo for this attribute Info. |
abstract void |
load(HistKey histKey,
AttributeValue value,
ChangeNumber cn)
Load the provided information. |
abstract 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. |
abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeInfo()
Method Detail |
---|
public abstract boolean replayOperation(java.util.Iterator<Modification> modsIterator, ChangeNumber changeNumber, Entry modifiedEntry, Modification mod)
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 abstract void processLocalOrNonConflictModification(ChangeNumber changeNumber, Modification mod)
changeNumber
- The changeNumber of the operation to processmod
- The modify operation to process.public static AttributeInfo createAttributeInfo(AttributeType type)
type
- the AttrbuteType with which the ATtributeInfo is going to be
used.
public abstract java.util.ArrayList<ValueInfo> getValuesInfo()
public abstract ChangeNumber getDeleteTime()
public abstract void load(HistKey histKey, AttributeValue value, ChangeNumber cn)
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 |