Package com.jalios.jcms.tools.storemerge
Class ConflictManager
java.lang.Object
com.jalios.jcms.tools.storemerge.ConflictManager
- All Implemented Interfaces:
StoreConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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, LOG_DIR_LOG_PREFIX, LOG_DIR_LOG_WORK, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandetectConflicts(TreeMap<String, List<StorableLogEntry>> dataMap1, TreeMap<String, List<StorableLogEntry>> dataMap2) intintgetResolutionOpList(String urid, long time) static voidresolveCreateCreateConflict(String id, List<StorableLogEntry> store1OpList, List<StorableLogEntry> store2OpList) resolveUpdateDeleteConflict(String id, List<StorableLogEntry> store1OpList, List<StorableLogEntry> store2OpList)
-
Field Details
-
NO_CONFLICT
- See Also:
-
UPDATE_UPDATE_CONFLICT_TYPE
- See Also:
-
UPDATE_DELETE_CONFLICT_TYPE
- See Also:
-
DELETE_UPDATE_CONFLICT_TYPE
- See Also:
-
CREATE_CREATE_CONFLICT_TYPE
- See Also:
-
-
Constructor Details
-
ConflictManager
-
-
Method Details
-
initLogger
public static void initLogger() -
detectConflicts
public boolean detectConflicts(TreeMap<String, List<StorableLogEntry>> dataMap1, TreeMap<String, List<StorableLogEntry>> dataMap2) -
getDataConflictCount
public int getDataConflictCount() -
getAllConflictCount
public int getAllConflictCount() -
resolveUpdateDeleteConflict
public List<StorableLogEntry> resolveUpdateDeleteConflict(String id, List<StorableLogEntry> store1OpList, List<StorableLogEntry> store2OpList) -
resolveCreateCreateConflict
public List<StorableLogEntry> resolveCreateCreateConflict(String id, List<StorableLogEntry> store1OpList, List<StorableLogEntry> store2OpList) -
getResolutionOpList
-