Package org.jgroups.blocks
Provides building blocks that are layered on top of channels.
Most of them do not even need a channel, all they need is a class
that implements interface Transport (channels do).
This enables them to work on any type of group transport that obeys this interface.
Building blocks can be used instead of channels whenever a higher-level interface
is required. Whereas channels are simple socket-like constructs, building blocks
may offer a far more sophisticated interface. In some cases, building blocks offer
access to the underlying channel, so that - if the building block at hand does not
offer a certain functionality - the channel can be accessed directly.
-
Interface Summary Interface Description BasicConnectionTable.ConnectionListener Used to be notified about connection establishment and teardown.BasicConnectionTable.Receiver Used for message reception.DistributedHashtable.Notification DistributedQueue.Notification DistributedTree.DistributedTreeListener DistributedTree.ViewListener LockManager LockManager
represents generic lock manager that allows obtaining and releasing locks on objects.MethodLookup NotificationBus.Consumer ReplicatedHashMap.Notification<K extends java.io.Serializable,V extends java.io.Serializable> ReplicatedHashtable.Notification ReplicatedHashtable.StateTransferListener ReplicatedMap<K extends java.io.Serializable,V extends java.io.Serializable> ReplicatedTree.ReplicatedTreeListener RequestHandler RpcDispatcher.Marshaller RpcDispatcher.Marshaller2 RspCollector RspFilter Interface defining when a group request is done.TwoPhaseVotingListener Implementations of this interface can participate in two-phase voting process.VoteResponseProcessor VoteResultProcessor Applications that use the VotingAdapter and/or TwoPhaseVotingAdapter can pass an implementation of this down the vote calls, to intercept processing of the VoteResults returned by other nodes.VotingListener Implemetations of this interface are able to participate in voting process. -
Class Summary Class Description BasicConnectionTable Shared class for TCP connection tables.ConnectionTable Manages incoming and outgoing TCP connections.ConnectionTableNIO Manages incoming and outgoing TCP connections.ConnectionTableNIO.MyFuture ConnectionTableNIO.SelectorWriteHandler ConnectionTableNIO.WriteRequest DistributedHashtable Deprecated. UseReplicatedHashMap
insteadDistributedLockManager Distributed lock manager is responsible for maintaining the lock information consistent on all participating nodes.DistributedLockManager.AcquireLockDecree This class represents the lock to be released.DistributedLockManager.LockDecree This class represents the lockDistributedLockManager.MultiLockDecree This class represents the lock that has to be marked as multilockedDistributedLockManager.ReleaseLockDecree This class represents the lock to be released.DistributedQueue Provides the abstraction of a java.util.LinkedList that is replicated at several locations.DistributedTree A tree-like structure that is replicated across several members.GroupRequest Sends a message to all members of the group and waits for all responses (or timeout).MembershipListenerAdapter This class provides multiplexing possibilities forMembershipListener
instances.MessageDispatcher Provides synchronous and asynchronous message sending with request-response correlation; i.e., matching responses with the original request.MessageListenerAdapter This class provides multiplexing possibilities forMessageListener
instances.MethodCall A method call is the JGroups representation of a remote method.NBMessageForm_NIO NBMessageForm - Message form for non-blocking message reads.NotificationBus This class provides notification sending and handling capability.PullPushAdapter Deprecated. UseReceiver
instead, this class will be removed in JGroups 3.0PullPushAdapter.PullHeader ReplicatedHashMap<K extends java.io.Serializable,V extends java.io.Serializable> Subclass of aConcurrentHashMap
with replication of the contents across a cluster.ReplicatedHashtable Deprecated. UseReplicatedHashMap
insteadReplicatedTree A tree-like structure that is replicated across several members.ReplicatedTree.Node RequestCorrelator Framework to send requests and receive matching responses (matching on request ID).RequestCorrelator.Header The header for RequestCorrelator messagesRpcDispatcher This class allows a programmer to invoke remote methods in all (or single) group members and optionally wait for the return value(s).RpcDispatcher.MarshallerAdapter Used to provide a Marshaller2 interface to a Marshaller.TwoPhaseVotingAdapter This adapter introduces simple two-phase voting on a specified decree.TwoPhaseVotingAdapter.TwoPhaseVoteWrapper TwoPhaseVotingAdapter.TwoPhaseWrapper Wrapper of the decree to voting decree.VotingAdapter Voting adapter provides a voting functionality for an application.VotingAdapter.FailureVoteResult Class that represents a result of local voting on the failed node.VotingAdapter.VoteResult This class represents the result of local voting. -
Exception Summary Exception Description LockingException LockMultiLockedException Thrown by theDistributedLockManager.unlock(Object, Object, boolean)
method if a lock is only locally released, because it is locked by multiple DistributedLockManagers.LockNotGrantedException This exception indicated that lock manager refused to give a lock on some resource.LockNotReleasedException This exception indicated that lock manager refused to release a lock on some resource.UpdateException VoteException This exception is thrown when voting listener cannot vote on the specified decree.