Class ClusteringDependentLogic.AbstractClusteringDependentLogic
- java.lang.Object
-
- org.infinispan.interceptors.locking.ClusteringDependentLogic.AbstractClusteringDependentLogic
-
- All Implemented Interfaces:
ClusteringDependentLogic
- Direct Known Subclasses:
ClusteringDependentLogic.DistributionLogic,ClusteringDependentLogic.InvalidationLogic,ClusteringDependentLogic.LocalLogic
- Enclosing interface:
- ClusteringDependentLogic
public abstract static class ClusteringDependentLogic.AbstractClusteringDependentLogic extends Object implements ClusteringDependentLogic
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.interceptors.locking.ClusteringDependentLogic
ClusteringDependentLogic.AbstractClusteringDependentLogic, ClusteringDependentLogic.Commit, ClusteringDependentLogic.DistributionLogic, ClusteringDependentLogic.InvalidationLogic, ClusteringDependentLogic.LocalLogic, ClusteringDependentLogic.ReplicationLogic, ClusteringDependentLogic.ScatteredLogic
-
-
Field Summary
Fields Modifier and Type Field Description protected CommitManagercommitManagerprotected Configurationconfigurationprotected org.infinispan.container.impl.InternalDataContainer<Object,Object>dataContainerprotected DistributionManagerdistributionManagerprotected org.infinispan.functional.impl.FunctionalNotifier<Object,Object>functionalNotifierprotected KeyPartitionerkeyPartitionerprotected CacheNotifier<Object,Object>notifierprotected PersistenceManagerpersistenceManagerprotected TimeServicetimeServiceprotected booleantotalOrder
-
Constructor Summary
Constructors Constructor Description AbstractClusteringDependentLogic()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ClusteringDependentLogic.CommitclusterCommitType(org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)voidcommitEntry(CacheEntry entry, org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)protected abstract voidcommitSingleEntry(CacheEntry entry, org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)ClusteringDependentLogic.CommitcommitType(org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)Determines what type of commit this is.EntryVersionsMapcreateNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator, org.infinispan.context.impl.TxInvocationContext context, org.infinispan.commands.tx.VersionedPrepareCommand prepareCommand)AddressgetAddress()LocalizedCacheTopologygetCacheTopology()protected abstract org.infinispan.transaction.impl.WriteSkewHelper.KeySpecificLogicinitKeySpecificLogic(boolean totalOrder)voidstart()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.interceptors.locking.ClusteringDependentLogic
getOwners, getOwners, getPrimaryOwner, localNodeIsOwner, localNodeIsPrimaryOwner
-
-
-
-
Field Detail
-
distributionManager
protected DistributionManager distributionManager
-
dataContainer
protected org.infinispan.container.impl.InternalDataContainer<Object,Object> dataContainer
-
notifier
protected CacheNotifier<Object,Object> notifier
-
commitManager
protected CommitManager commitManager
-
persistenceManager
protected PersistenceManager persistenceManager
-
timeService
protected TimeService timeService
-
functionalNotifier
protected org.infinispan.functional.impl.FunctionalNotifier<Object,Object> functionalNotifier
-
configuration
protected Configuration configuration
-
keyPartitioner
protected KeyPartitioner keyPartitioner
-
totalOrder
protected boolean totalOrder
-
-
Method Detail
-
start
public void start()
-
createNewVersionsAndCheckForWriteSkews
public EntryVersionsMap createNewVersionsAndCheckForWriteSkews(VersionGenerator versionGenerator, org.infinispan.context.impl.TxInvocationContext context, org.infinispan.commands.tx.VersionedPrepareCommand prepareCommand)
- Specified by:
createNewVersionsAndCheckForWriteSkewsin interfaceClusteringDependentLogic
-
commitEntry
public final void commitEntry(CacheEntry entry, org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)
- Specified by:
commitEntryin interfaceClusteringDependentLogic
-
commitSingleEntry
protected abstract void commitSingleEntry(CacheEntry entry, org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, Flag trackFlag, boolean l1Invalidation)
-
clusterCommitType
protected ClusteringDependentLogic.Commit clusterCommitType(org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)
-
commitType
public ClusteringDependentLogic.Commit commitType(org.infinispan.commands.FlagAffectedCommand command, InvocationContext ctx, int segment, boolean removed)
Description copied from interface:ClusteringDependentLogicDetermines what type of commit this is. Whether we shouldn't commit, or if this is a commit due to owning the key or not- Specified by:
commitTypein interfaceClusteringDependentLogicsegment- if 0 or greater assumes the underlying container is segmented.- Returns:
-
initKeySpecificLogic
protected abstract org.infinispan.transaction.impl.WriteSkewHelper.KeySpecificLogic initKeySpecificLogic(boolean totalOrder)
-
getCacheTopology
public LocalizedCacheTopology getCacheTopology()
- Specified by:
getCacheTopologyin interfaceClusteringDependentLogic- Returns:
- information about the location of keys.
-
getAddress
public Address getAddress()
- Specified by:
getAddressin interfaceClusteringDependentLogic
-
-