public class ConflictManager extends java.lang.Object implements StoreConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATE_CREATE_CONFLICT_TYPE |
static java.lang.String |
DELETE_UPDATE_CONFLICT_TYPE |
static java.lang.String |
NO_CONFLICT |
static java.lang.String |
UPDATE_DELETE_CONFLICT_TYPE |
static java.lang.String |
UPDATE_UPDATE_CONFLICT_TYPE |
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, REVISION, SH_SUFFIX, STORING_STATE, UPDATE_OP
Constructor and Description |
---|
ConflictManager(StoreMergeParameters params) |
Modifier and Type | Method and Description |
---|---|
boolean |
detectConflicts(java.util.TreeMap<java.lang.String,java.util.List<StorableLogEntry>> dataMap1,
java.util.TreeMap<java.lang.String,java.util.List<StorableLogEntry>> dataMap2) |
int |
getAllConflictCount() |
int |
getDataConflictCount() |
java.util.List<StorableLogEntry> |
getResolutionOpList(java.lang.String urid,
long time) |
static void |
initLogger() |
java.util.List<StorableLogEntry> |
resolveCreateCreateConflict(java.lang.String id,
java.util.List<StorableLogEntry> store1OpList,
java.util.List<StorableLogEntry> store2OpList) |
java.util.List<StorableLogEntry> |
resolveUpdateDeleteConflict(java.lang.String id,
java.util.List<StorableLogEntry> store1OpList,
java.util.List<StorableLogEntry> store2OpList) |
public static final java.lang.String NO_CONFLICT
public static final java.lang.String UPDATE_UPDATE_CONFLICT_TYPE
public static final java.lang.String UPDATE_DELETE_CONFLICT_TYPE
public static final java.lang.String DELETE_UPDATE_CONFLICT_TYPE
public static final java.lang.String CREATE_CREATE_CONFLICT_TYPE
public ConflictManager(StoreMergeParameters params)
public static void initLogger()
public boolean detectConflicts(java.util.TreeMap<java.lang.String,java.util.List<StorableLogEntry>> dataMap1, java.util.TreeMap<java.lang.String,java.util.List<StorableLogEntry>> dataMap2)
public int getDataConflictCount()
public int getAllConflictCount()
public java.util.List<StorableLogEntry> resolveUpdateDeleteConflict(java.lang.String id, java.util.List<StorableLogEntry> store1OpList, java.util.List<StorableLogEntry> store2OpList)
public java.util.List<StorableLogEntry> resolveCreateCreateConflict(java.lang.String id, java.util.List<StorableLogEntry> store1OpList, java.util.List<StorableLogEntry> store2OpList)
public java.util.List<StorableLogEntry> getResolutionOpList(java.lang.String urid, long time)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.