Package com.jalios.jcms.tools.storemerge
Class ConflictManager
- java.lang.Object
-
- com.jalios.jcms.tools.storemerge.ConflictManager
-
- All Implemented Interfaces:
StoreConstants
public class ConflictManager extends java.lang.Object implements StoreConstants
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from interface com.jalios.jstore.StoreConstants
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 Summary
Constructors Constructor Description ConflictManager(StoreMergeParameters params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
NO_CONFLICT
public static final java.lang.String NO_CONFLICT
- See Also:
- Constant Field Values
-
UPDATE_UPDATE_CONFLICT_TYPE
public static final java.lang.String UPDATE_UPDATE_CONFLICT_TYPE
- See Also:
- Constant Field Values
-
UPDATE_DELETE_CONFLICT_TYPE
public static final java.lang.String UPDATE_DELETE_CONFLICT_TYPE
- See Also:
- Constant Field Values
-
DELETE_UPDATE_CONFLICT_TYPE
public static final java.lang.String DELETE_UPDATE_CONFLICT_TYPE
- See Also:
- Constant Field Values
-
CREATE_CREATE_CONFLICT_TYPE
public static final java.lang.String CREATE_CREATE_CONFLICT_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConflictManager
public ConflictManager(StoreMergeParameters params)
-
-
Method Detail
-
initLogger
public static void initLogger()
-
detectConflicts
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)
-
getDataConflictCount
public int getDataConflictCount()
-
getAllConflictCount
public int getAllConflictCount()
-
resolveUpdateDeleteConflict
public java.util.List<StorableLogEntry> resolveUpdateDeleteConflict(java.lang.String id, java.util.List<StorableLogEntry> store1OpList, java.util.List<StorableLogEntry> store2OpList)
-
resolveCreateCreateConflict
public java.util.List<StorableLogEntry> resolveCreateCreateConflict(java.lang.String id, java.util.List<StorableLogEntry> store1OpList, java.util.List<StorableLogEntry> store2OpList)
-
getResolutionOpList
public java.util.List<StorableLogEntry> getResolutionOpList(java.lang.String urid, long time)
-
-