|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.plugin.Historical
public class Historical
This class is used to store historical information that is used to resolve modify conflicts It is assumed that the common case is not to have conflict and therefore is optimized (in order of importance) for : 1- detecting potential conflict 2- fast update of historical information for non-conflicting change 3- fast and efficient purge 4- compact 5- solve conflict. This should also be as fast as possible but not at the cost of any of the other previous objectives One Historical object is created for each entry in the entry cache each Historical Object contains a list of attribute historical information
Field Summary | |
---|---|
static java.lang.String |
ENTRYUIDNAME
The name of the entryuuid attribute. |
static java.lang.String |
HISTORICAL
Name used to store attachment of historical information in the operation. |
static java.lang.String |
HISTORICALATTRIBUTENAME
The name of the attribute used to store historical information. |
Constructor Summary | |
---|---|
Historical()
|
Method Summary | |
---|---|
Attribute |
encode()
Encode the historical information in an operational attribute. |
static java.lang.Iterable<FakeOperation> |
generateFakeOperations(Entry entry)
Use this historical information to generate fake operations that would result in this historical information. |
void |
generateState(PreOperationModifyOperation modifyOperation)
Append replacement of state information to a given modification. |
static java.lang.String |
getEntryUuid(Entry entry)
Get the entry unique Id in String form. |
static java.lang.String |
getEntryUuid(PreOperationAddOperation op)
Get the Entry Unique Id from an add operation. |
static java.util.List<Attribute> |
getHistoricalAttr(Entry entry)
Get the Attribute used to store the historical information from the given Entry. |
static boolean |
isHistoricalAttribute(Attribute attr)
Check if a given attribute is an attribute used to store historical information. |
static Historical |
load(Entry entry)
read the historical information from the entry attribute and load it into the Historical object attached to the entry. |
boolean |
replayOperation(PreOperationModifyOperation modifyOperation,
Entry modifiedEntry)
Process an operation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HISTORICALATTRIBUTENAME
public static final java.lang.String HISTORICAL
public static final java.lang.String ENTRYUIDNAME
Constructor Detail |
---|
public Historical()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean replayOperation(PreOperationModifyOperation modifyOperation, Entry modifiedEntry)
modifyOperation
- the operation to be processedmodifiedEntry
- the entry that is being modified (before modification)
public void generateState(PreOperationModifyOperation modifyOperation)
modifyOperation
- the modification.public Attribute encode()
public static Historical load(Entry entry)
entry
- The entry which historical information must be loaded
public static java.lang.Iterable<FakeOperation> generateFakeOperations(Entry entry)
entry
- The Entry to use to generate the FakeOperation Iterable.
public static java.util.List<Attribute> getHistoricalAttr(Entry entry)
entry
- The entry containing the historical information.
public static java.lang.String getEntryUuid(Entry entry)
entry
- The entry for which the unique id should be returned.
public static java.lang.String getEntryUuid(PreOperationAddOperation op)
op
- The operation
public static boolean isHistoricalAttribute(Attribute attr)
attr
- The attribute that needs to be checked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |