com.jalios.jcms.tools.storemerge
Class ConflictManager

java.lang.Object
  extended by com.jalios.jcms.tools.storemerge.ConflictManager
All Implemented Interfaces:
StoreConstants

public class ConflictManager
extends Object
implements StoreConstants


Field Summary
static String DELETE_UPDATE_CONFLICT_TYPE
           
static String NO_CONFLICT
           
static String UPDATE_DELETE_CONFLICT_TYPE
           
static 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
ConflictManager(StoreMergeParameters params)
           
 
Method Summary
 boolean detectConflicts(TreeMap<String,List<StorableLogEntry>> dataMap1, TreeMap<String,List<StorableLogEntry>> dataMap2)
           
 int getAllConflictCount()
           
 int getDataConflictCount()
           
 List<StorableLogEntry> getResolutionOpList(String urid, long time)
           
static void initLogger()
           
 List<StorableLogEntry> resolveUpdateDeleteConflict(String id, List<StorableLogEntry> store1OpList, List<StorableLogEntry> store2OpList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_CONFLICT

public static final String NO_CONFLICT
See Also:
Constant Field Values

UPDATE_UPDATE_CONFLICT_TYPE

public static final String UPDATE_UPDATE_CONFLICT_TYPE
See Also:
Constant Field Values

UPDATE_DELETE_CONFLICT_TYPE

public static final String UPDATE_DELETE_CONFLICT_TYPE
See Also:
Constant Field Values

DELETE_UPDATE_CONFLICT_TYPE

public static final String DELETE_UPDATE_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(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)

getResolutionOpList

public List<StorableLogEntry> getResolutionOpList(String urid,
                                                  long time)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.