Uses of Class
org.infinispan.topology.CacheTopology
Package
Description
Classes relating to the distributed cache mode.
Cache
-specific notifications and eventing.-
Uses of CacheTopology in org.infinispan.container.versioning.irac
Modifier and TypeMethodDescriptionvoid
DefaultIracVersionGenerator.onTopologyChange
(CacheTopology newTopology) void
IracVersionGenerator.onTopologyChange
(CacheTopology newTopology) Invoked when a topology change occurs in the cluster.void
NoOpIracVersionGenerator.onTopologyChange
(CacheTopology newTopology) -
Uses of CacheTopology in org.infinispan.distribution
Modifier and TypeClassDescriptionclass
ExtendsCacheTopology
with information about keys owned by the local node.Modifier and TypeMethodDescriptionDistributionManager.createLocalizedCacheTopology
(CacheTopology cacheTopology) void
DistributionManager.setCacheTopology
(CacheTopology cacheTopology) Deprecated, for removal: This API element is subject to removal in a future version.Internal only.ModifierConstructorDescriptionLocalizedCacheTopology
(CacheMode cacheMode, CacheTopology cacheTopology, KeyPartitioner keyPartitioner, Address localAddress, boolean connected) -
Uses of CacheTopology in org.infinispan.distribution.impl
Modifier and TypeMethodDescriptionDistributionManagerImpl.createLocalizedCacheTopology
(CacheTopology cacheTopology) void
DistributionManagerImpl.setCacheTopology
(CacheTopology cacheTopology) -
Uses of CacheTopology in org.infinispan.notifications.cachelistener
Modifier and TypeMethodDescriptionCacheNotifier.notifyTopologyChanged
(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre) CacheNotifierImpl.notifyTopologyChanged
(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre) -
Uses of CacheTopology in org.infinispan.partitionhandling.impl
Modifier and TypeMethodDescriptionPreferAvailabilityStrategy.computePreferredTopology
(Map<Address, CacheStatusResponse> statusResponseMap) Ignore the AvailabilityStrategyContext and only compute the preferred topology for testing.AvailabilityStrategyContext.getCurrentTopology()
AvailablePartitionHandlingManager.getLastStableTopology()
PartitionHandlingManager.getLastStableTopology()
Deprecated.PartitionHandlingManagerImpl.getLastStableTopology()
AvailabilityStrategyContext.getStableTopology()
Whenever a new cache topology without apendingCH
and with at leastnumOwners
owners for each segment is installed, and the cache isAvailabilityMode.AVAILABLE
, the current cache topology is marked as the stable topology.Modifier and TypeMethodDescriptionvoid
AvailablePartitionHandlingManager.onTopologyUpdate
(CacheTopology cacheTopology) void
PartitionHandlingManager.onTopologyUpdate
(CacheTopology cacheTopology) Notifies thePartitionHandlingManager
that the cache topology was update.void
PartitionHandlingManagerImpl.onTopologyUpdate
(CacheTopology cacheTopology) static ConsistentHash
AvailabilityStrategy.ownersConsistentHash
(CacheTopology topology, ConsistentHashFactory chFactory) Compute the read consistent hash for a topology with anull
union consistent hash.void
AvailabilityStrategyContext.queueConflictResolution
(CacheTopology conflictTopology, Set<Address> preferredNodes) Initiates conflict resolution using the conflictTopology, which should have already been broadcast viainvalid @link
{@link this#updateTopologiesAfterMerge(CacheTopology, CacheTopology, AvailabilityMode)
void
AvailabilityStrategyContext.updateTopologiesAfterMerge
(CacheTopology currentTopology, CacheTopology stableTopology, AvailabilityMode availabilityMode) Updates both the stable and the current topologies. -
Uses of CacheTopology in org.infinispan.scattered.impl
Modifier and TypeMethodDescriptionScatteredStateConsumerImpl.onTopologyUpdate
(CacheTopology cacheTopology, boolean isRebalance) ScatteredStateProviderImpl.onTopologyUpdate
(CacheTopology cacheTopology, boolean isRebalance) -
Uses of CacheTopology in org.infinispan.topology
Modifier and TypeMethodDescriptionprotected CacheTopology
ClusterCacheStatus.createInitialCacheTopology()
CacheTopology.Externalizer.doReadObject
(ObjectInput unmarshaller) CacheStatusResponse.getCacheTopology()
LocalTopologyManager.getCacheTopology
(String cacheName) LocalTopologyManagerImpl.getCacheTopology
(String cacheName) ClusterCacheStatus.getCurrentTopology()
LocalTopologyManager.getStableCacheTopology
(String cacheName) LocalTopologyManagerImpl.getStableCacheTopology
(String cacheName) CacheStatusResponse.getStableTopology()
ClusterCacheStatus.getStableTopology()
protected CacheTopology
ClusterCacheStatus.restoreCacheTopology
(ScopedPersistentState state) Modifier and TypeMethodDescriptionSet
<Class<? extends CacheTopology>> CacheTopology.Externalizer.getTypeClasses()
LocalTopologyManager.join
(String cacheName, CacheJoinInfo joinInfo, CacheTopologyHandler stm, PartitionHandlingManager phm) Forwards the join request to the coordinator.LocalTopologyManagerImpl.join
(String cacheName, CacheJoinInfo joinInfo, CacheTopologyHandler stm, PartitionHandlingManager phm) Modifier and TypeMethodDescriptionvoid
CacheTopology.Externalizer.doWriteObject
(ObjectOutput output, CacheTopology cacheTopology) LocalTopologyManager.handleRebalance
(String cacheName, CacheTopology cacheTopology, int viewId, Address sender) Performs the state transfer.LocalTopologyManagerImpl.handleRebalance
(String cacheName, CacheTopology cacheTopology, int viewId, Address sender) LocalTopologyManager.handleStableTopologyUpdate
(String cacheName, CacheTopology cacheTopology, Address sender, int viewId) Update the stable cache topology.LocalTopologyManagerImpl.handleStableTopologyUpdate
(String cacheName, CacheTopology newStableTopology, Address sender, int viewId) LocalTopologyManager.handleTopologyUpdate
(String cacheName, CacheTopology cacheTopology, AvailabilityMode availabilityMode, int viewId, Address sender) Updates the current and/or pending consistent hash, without transferring any state.LocalTopologyManagerImpl.handleTopologyUpdate
(String cacheName, CacheTopology cacheTopology, AvailabilityMode availabilityMode, int viewId, Address sender) void
ClusterCacheStatus.queueConflictResolution
(CacheTopology conflictTopology, Set<Address> preferredNodes) CacheTopologyHandler.rebalance
(CacheTopology cacheTopology) Invoked when state transfer has to be started.CacheTopologyHandler.updateConsistentHash
(CacheTopology cacheTopology) Invoked when the CH has to be immediately updated because of a leave or when the state transfer has completed and we have to install a permanent CH (pendingCH == null).void
ClusterCacheStatus.updateTopologiesAfterMerge
(CacheTopology currentTopology, CacheTopology stableTopology, AvailabilityMode availabilityMode) ModifierConstructorDescriptionCacheStatusResponse
(CacheJoinInfo cacheJoinInfo, CacheTopology cacheTopology, CacheTopology stableTopology, AvailabilityMode availabilityMode, List<Address> current) -
Uses of CacheTopology in org.infinispan.transaction.impl
Modifier and TypeMethodDescriptionLocalTransaction.getCommitNodes
(Collection<Address> recipients, CacheTopology cacheTopology) Calculates the list of nodes to which a commit/rollback needs to be sent based on the nodes to which prepare was sent. -
Uses of CacheTopology in org.infinispan.xsite.irac
Modifier and TypeMethodDescriptionvoid
DefaultIracManager.onTopologyUpdate
(CacheTopology oldCacheTopology, CacheTopology newCacheTopology) void
IracManager.onTopologyUpdate
(CacheTopology oldCacheTopology, CacheTopology newCacheTopology) Notifies a topology changed.void
NoOpIracManager.onTopologyUpdate
(CacheTopology oldCacheTopology, CacheTopology newCacheTopology) -
Uses of CacheTopology in org.infinispan.xsite.statetransfer
Modifier and TypeMethodDescriptionvoid
NoOpXSiteStateTransferManager.onTopologyUpdated
(CacheTopology cacheTopology, boolean stateTransferInProgress) void
XSiteStateTransferManager.onTopologyUpdated
(CacheTopology cacheTopology, boolean stateTransferInProgress) NotifiesXSiteStateTransferManager
that a newCacheTopology
is installed and if the local cluster state transfer is in progress (or about to start)void
XSiteStateTransferManagerImpl.onTopologyUpdated
(CacheTopology cacheTopology, boolean stateTransferInProgress)