
public class OMajorityDistributedConflictResolver extends OAbstractDistributedConflictResolver
ODistributedConflictResolver.OConflictResult| Constructor and Description |
|---|
OMajorityDistributedConflictResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Name to register in the factory.
|
ODistributedConflictResolver.OConflictResult |
onConflict(String databaseName,
String clusterName,
com.orientechnologies.orient.core.id.ORecordId rid,
ODistributedServerManager dManager,
Map<Object,List<String>> candidates,
com.orientechnologies.orient.core.record.impl.ODocument config)
Called on distributed conflict.
|
getBestResultpublic static final String NAME
public OMajorityDistributedConflictResolver()
public ODistributedConflictResolver.OConflictResult onConflict(String databaseName, String clusterName, com.orientechnologies.orient.core.id.ORecordId rid, ODistributedServerManager dManager, Map<Object,List<String>> candidates, com.orientechnologies.orient.core.record.impl.ODocument config)
ODistributedConflictResolverrid - RecordID of the record in conflictdManager - Current distributed manager instancecandidates - All the values from the servers grouped by value. The key could also be an exception in case the record was not
found. @return The winning objectconfig - The ODocument representing the configuration of the conflict resolver. it's optional, null means no configurationpublic String getName()
ODistributedConflictResolverCopyright © 2009–2016 OrientDB. All rights reserved.