Store
- store of a partitionpublic abstract class AbstractSplitBrainHandlerService<Store> extends Object implements SplitBrainHandlerService
SplitBrainHandlerService
.Modifier | Constructor and Description |
---|---|
protected |
AbstractSplitBrainHandlerService(NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
destroyStore(Store store)
Destroys the provided store.
|
void |
destroyStores(Collection<Store> recordStores) |
protected abstract String |
getDataStructureName(Store store) |
protected abstract Object |
getMergePolicy(String dataStructureName) |
protected boolean |
isDiscardPolicy(Object mergePolicy) |
protected abstract Collection<Iterator<Store>> |
iteratorsOf(int partitionId) |
protected abstract Runnable |
newMergeRunnable(Map<String,Collection<Store>> collectedStores,
Map<String,Collection<Store>> collectedStoresWithLegacyPolicies,
Collection<Store> backupStores,
NodeEngine nodeEngine) |
protected void |
onPrepareMergeRunnableEnd(Collection<String> dataStructureNames) |
protected void |
onPrepareMergeRunnableStart() |
Runnable |
prepareMergeRunnable()
When the two separate clusters merge (resolve a split-brain), this method is called to return
a
Runnable , that will merge the clusters. |
protected AbstractSplitBrainHandlerService(NodeEngine nodeEngine)
public final Runnable prepareMergeRunnable()
SplitBrainHandlerService
Runnable
, that will merge the clusters.prepareMergeRunnable
in interface SplitBrainHandlerService
Runnable
that will merge the clustersprotected void onPrepareMergeRunnableStart()
protected void onPrepareMergeRunnableEnd(Collection<String> dataStructureNames)
protected boolean isDiscardPolicy(Object mergePolicy)
public void destroyStores(Collection<Store> recordStores)
protected abstract void destroyStore(Store store)
protected abstract String getDataStructureName(Store store)
protected abstract Object getMergePolicy(String dataStructureName)
protected abstract Collection<Iterator<Store>> iteratorsOf(int partitionId)
protected abstract Runnable newMergeRunnable(Map<String,Collection<Store>> collectedStores, Map<String,Collection<Store>> collectedStoresWithLegacyPolicies, Collection<Store> backupStores, NodeEngine nodeEngine)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.