Package org.infinispan.distribution

Classes relating to the distributed cache mode.

See:
          Description

Interface Summary
DistributionManager A component that manages the distribution of elements across a cache cluster
L1Manager Manages the L1 Cache, in particular recording anyone who is going to cache an a command that a node responds to so that a unicast invalidation can be sent later if needed.
RemoteTransactionLogger This abstraction performs RPCs and works on a TransactionLogger located on a remote node.
TransactionLogger Typically adding a command, the following pattern would be used:

if (txLogger.logIfNeeded(cmd)) { // do NOT proceed with executing this command! } else { // proceed with executing this command as per normal! }

When draining, the following pattern should be used:

List<WriteCommand> c = null; while (txLogger.shouldDrainWithoutLock()) { c = txLogger.drain(); applyCommands(c); } c = txLogger.drainAndLock(); applyCommands(c); applyPendingPrepares(txLogger.getPendingPrepares()); txLogger.unlockAndDisable();

 

Class Summary
DistributionManagerImpl The default distribution manager implementation
InvertedLeaveTask A task to handle rehashing for when a node leaves the cluster
JoinTask JoinTask: This is a PULL based rehash.
L1ManagerImpl  
MergeTask This task is kicked off whenever a MERGE is detected
RehashTask A task that handles the rehashing of data in the cache system wheh nodes join or leave the cluster.
RemoteTransactionLogDetails A holder for fetching transaction logs from a remote state provider
RemoteTransactionLogDetails.Externalizer  
RemoteTransactionLoggerImpl This abstraction performs RPCs and works on a TransactionLogger located on a remote node.
TransactionLoggerImpl A transaction logger to log ongoing transactions in an efficient and thread-safe manner while a rehash is going on.
 

Enum Summary
DataLocality Used to determine whether a key is mapped to a local node.
 

Package org.infinispan.distribution Description

Classes relating to the distributed cache mode.


-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.