Package | Description |
---|---|
org.jgroups |
Provides top-level public JGroups classes such as Channel, Message, etc.
|
org.jgroups.auth | |
org.jgroups.blocks |
Provides building blocks that are layered on top of channels.
|
org.jgroups.blocks.mux | |
org.jgroups.debug |
Provides debug support, including testing, profiling, and a graphical view of a protocol stack.
|
org.jgroups.demos |
Provides demonstrations of JGroups functionality.
|
org.jgroups.demos.wb |
A distributed whiteboard applet implemented using JGroups.
|
org.jgroups.mux | |
org.jgroups.protocols |
Provides implementations of transport protocols which are
responsible for sending and receiving messages to/from the network.
|
org.jgroups.stack |
Support for managing protocol stacks.
|
org.jgroups.util |
Provides useful functionality which cannot be assigned to any particular other package.
|
Modifier and Type | Method and Description |
---|---|
Message |
Message.copy() |
Message |
Message.copy(boolean copy_buffer)
Create a copy of the message.
|
Message |
Message.copy(boolean copy_buffer,
boolean copy_headers)
Create a copy of the message.
|
Message |
Message.copy(boolean copy_buffer,
short starting_id)
Doesn't copy any headers except for those with ID >= copy_headers_above
|
Message |
Message.makeReply() |
Modifier and Type | Method and Description |
---|---|
void |
ReceiverAdapter.receive(Message msg) |
void |
MessageListener.receive(Message msg)
Called when a message is received.
|
void |
ExtendedReceiverAdapter.receive(Message msg) |
void |
Transport.send(Message msg) |
void |
JChannel.send(Message msg)
Sends a message through the protocol stack.
|
abstract void |
Channel.send(Message msg)
Sends a message to a (unicast) destination.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FixedMembershipToken.authenticate(AuthToken token,
Message msg) |
boolean |
SimpleToken.authenticate(AuthToken token,
Message msg) |
abstract boolean |
AuthToken.authenticate(AuthToken token,
Message msg)
This method should be implemented to perform the actual authentication of joining members.
|
boolean |
MD5Token.authenticate(AuthToken token,
Message msg) |
boolean |
X509Token.authenticate(AuthToken token,
Message msg) |
boolean |
RegexMembership.authenticate(AuthToken token,
Message msg) |
Modifier and Type | Field and Description |
---|---|
protected Message |
Request.request_msg |
Modifier and Type | Method and Description |
---|---|
protected GroupRequest |
MessageDispatcher.cast(Collection<Address> dests,
Message msg,
RequestOptions options,
boolean block_for_results) |
RspList |
MessageDispatcher.castMessage(Collection<Address> dests,
Message msg,
RequestOptions options)
Sends a message to the members listed in dests.
|
RspList |
MessageDispatcher.castMessage(Vector dests,
Message msg,
int mode,
long timeout)
Deprecated.
|
RspList |
MessageDispatcher.castMessage(Vector dests,
Message msg,
int mode,
long timeout,
boolean use_anycasting)
Deprecated.
|
RspList |
MessageDispatcher.castMessage(Vector dests,
Message msg,
int mode,
long timeout,
boolean use_anycasting,
RspFilter filter)
Deprecated.
|
NotifyingFuture<RspList> |
MessageDispatcher.castMessageWithFuture(Collection<Address> dests,
Message msg,
RequestOptions options) |
NotifyingFuture<RspList> |
MessageDispatcher.castMessageWithFuture(Vector dests,
Message msg,
int mode,
long timeout,
boolean use_anycasting,
RspFilter filter)
Deprecated.
|
Object |
RequestHandler.handle(Message msg) |
Object |
MessageDispatcher.handle(Message msg) |
Object |
RpcDispatcher.handle(Message req)
Message contains MethodCall.
|
protected void |
PullPushAdapter.handleMessage(Message msg)
Deprecated.
Check whether the message has an identifier.
|
protected void |
RequestCorrelator.handleRequest(Message req,
RequestCorrelator.Header hdr)
Handle a request msg for this correlator
|
protected void |
RequestCorrelator.prepareResponse(Message rsp) |
void |
ReplicatedHashMap.receive(Message msg) |
void |
DistributedQueue.receive(Message msg) |
void |
ReplicatedTree.receive(Message msg)
Callback.
|
void |
DistributedTree.receive(Message msg) |
void |
MessageListenerAdapter.receive(Message msg)
Receive message from group.
|
void |
VotingAdapter.receive(Message msg)
Receive the message.
|
void |
NotificationBus.receive(Message msg)
Deprecated.
|
boolean |
RequestCorrelator.receiveMessage(Message msg)
Handles a message coming from a layer below
|
void |
MessageDispatcher.send(Message msg)
Deprecated.
|
void |
PullPushAdapter.send(Message msg)
Deprecated.
Sends a message with no identifier; listener member will get this message on the other group members.
|
void |
PullPushAdapter.send(Serializable identifier,
Message msg)
Deprecated.
Sends a message to the group - listeners to this identifier will receive the messages.
|
Object |
MessageDispatcher.sendMessage(Message msg,
int mode,
long timeout)
Deprecated.
|
Object |
MessageDispatcher.sendMessage(Message msg,
RequestOptions opts) |
<T> NotifyingFuture<T> |
MessageDispatcher.sendMessageWithFuture(Message msg,
int mode,
long timeout)
Deprecated.
|
<T> NotifyingFuture<T> |
MessageDispatcher.sendMessageWithFuture(Message msg,
RequestOptions options) |
void |
RequestCorrelator.sendRequest(long id,
Collection<Address> dest_mbrs,
Message msg,
RspCollector coll,
RequestOptions options)
Sends a request to a group.
|
void |
RequestCorrelator.sendRequest(long id,
List<Address> dest_mbrs,
Message msg,
RspCollector coll) |
void |
RequestCorrelator.sendRequest(long id,
Message msg,
RspCollector coll)
Deprecated.
|
void |
RequestCorrelator.sendUnicastRequest(long id,
Address target,
Message msg,
RspCollector coll)
Sends a request to a single destination
|
Modifier and Type | Method and Description |
---|---|
protected GroupRequest |
MuxMessageDispatcher.cast(Collection<Address> dests,
Message msg,
RequestOptions options,
boolean blockForResults) |
protected GroupRequest |
MuxRpcDispatcher.cast(Collection<Address> dests,
Message msg,
RequestOptions options,
boolean blockForResults) |
protected void |
MuxRequestCorrelator.prepareResponse(Message rsp) |
void |
MuxRequestCorrelator.sendRequest(long requestId,
Collection<Address> dest_mbrs,
Message msg,
RspCollector coll,
RequestOptions options) |
void |
MuxRequestCorrelator.sendUnicastRequest(long id,
Address target,
Message msg,
RspCollector coll) |
Modifier and Type | Method and Description |
---|---|
boolean |
Simulator.checkForDropMessage(Message msg,
Address dest) |
boolean |
Simulator.DropMessage.drop(Message msg,
Address dest) |
boolean |
Simulator.receiverDropFault(Message msg,
Address src) |
boolean |
Simulator.senderDropFault(Message msg,
Address dest) |
Modifier and Type | Method and Description |
---|---|
void |
QuoteServer.receive(Message msg) |
void |
Draw.receive(Message msg) |
Modifier and Type | Method and Description |
---|---|
void |
Whiteboard.receive(Message m) |
Modifier and Type | Method and Description |
---|---|
void |
MuxChannel.send(Message msg)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected List<Message> |
SHUFFLE.down_msgs |
protected BlockingQueue<Message> |
DAISYCHAIN.forward_queue |
protected BlockingQueue<Message> |
DAISYCHAIN.send_queue |
protected List<Message> |
SHUFFLE.up_msgs |
Modifier and Type | Method and Description |
---|---|
Message |
TransportedVectorTime.getAssociatedMessage()
Returns a message associated with this vector timestamp.
|
protected static Message |
TP.readMessage(DataInputStream instream) |
Message |
SCOPE.MessageQueue.remove() |
Modifier and Type | Method and Description |
---|---|
protected static List<Message> |
TP.readMessageList(DataInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
SCOPE.MessageQueue.add(Message msg) |
protected void |
RELAY.forwardToCoord(Message msg)
Wraps the message annd sends it to the current coordinator
|
protected void |
UNICAST.handleDataReceived(Address sender,
long seqno,
long conn_id,
boolean first,
Message msg,
Event evt)
Check whether the hashtable contains an entry e for
sender (create if not). |
protected void |
UNICAST2.handleDataReceived(Address sender,
long seqno,
long conn_id,
boolean first,
Message msg,
Event evt)
Check whether the hashtable contains an entry e for
sender (create if not). |
protected abstract Object |
FlowControl.handleDownMessage(Event evt,
Message msg,
Address dest,
int length) |
protected Object |
UFC.handleDownMessage(Event evt,
Message msg,
Address dest,
int length) |
protected Object |
MFC.handleDownMessage(Event evt,
Message msg,
Address dest,
int length) |
protected void |
TP.passMessageUp(Message msg,
boolean perform_cluster_name_matching,
boolean multicast,
boolean discard_own_mcast) |
void |
RELAY.Receiver.receive(Message msg) |
void |
UNICAST.retransmit(long seqno,
Message msg)
Called by AckSenderWindow to resend messages for which no ACK has been received yet
|
void |
SMACK.retransmit(long seqno,
Message msg,
Address dest) |
void |
TP.Bundler.send(Message msg) |
protected void |
TUNNEL.send(Message msg,
Address dest,
boolean multicast) |
protected void |
TP.send(Message msg,
Address dest,
boolean multicast)
Serializes and sends a message.
|
void |
TransportedVectorTime.setAssociatedMessage(Message owner)
Sets a message associated with this vector timestamp
|
protected void |
TP.setSourceAddress(Message msg)
If the sender is null, set our own address.
|
protected static void |
TP.writeMessage(Message msg,
DataOutputStream dos,
boolean multicast)
This method needs to be synchronized on out_stream when it is called
|
Modifier and Type | Method and Description |
---|---|
protected static void |
TP.writeMessageList(Address dest,
Address src,
List<Message> msgs,
DataOutputStream dos,
boolean multicast)
Write a lits of messages with the same destination and *mostly* the same src addresses.
|
Modifier and Type | Field and Description |
---|---|
static Message |
AckReceiverWindow.TOMBSTONE |
Modifier and Type | Method and Description |
---|---|
Message |
NakReceiverWindow.get(long seqno)
Returns the message from xmit_table
|
Message |
AckSenderWindow.get(long seqno) |
Message |
AckSenderWindow.getLowestMessage()
Returns the message with the lowest seqno
|
Message |
NakReceiverWindow.remove() |
Message |
AckReceiverWindow.remove()
Removes a message whose seqno is equal to
next_to_remove , increments the latter. |
Message |
NakReceiverWindow.remove(boolean acquire_lock,
boolean remove_msg) |
Modifier and Type | Method and Description |
---|---|
List<Message> |
NakReceiverWindow.get(long from,
long to)
Returns a list of messages in the range [from ..
|
List<Message> |
NakReceiverWindow.removeMany(AtomicBoolean processing)
Removes as many messages as possible
|
List<Message> |
NakReceiverWindow.removeMany(AtomicBoolean processing,
boolean remove_msgs,
int max_results)
Removes as many messages as possible
|
Tuple<List<Message>,Long> |
AckReceiverWindow.removeMany(int max)
Removes as many messages as possible (in sequence, without gaps)
|
List<Message> |
AckReceiverWindow.removeManyAsList(int max) |
Modifier and Type | Method and Description |
---|---|
boolean |
NakReceiverWindow.add(long seqno,
Message msg)
Adds a message according to its seqno (sequence number).
|
boolean |
AckReceiverWindow.add(long seqno,
Message msg)
Adds a new message.
|
void |
AckSenderWindow.add(long seqno,
Message msg)
Adds a new message to the retransmission table.
|
void |
AckMcastSenderWindow.add(long seqno,
Message msg,
Vector receivers)
Adds a new message to the hash table.
|
byte |
AckReceiverWindow.add2(long seqno,
Message msg)
Adds a message if not yet received
|
void |
AckSenderWindow.addToMessages(long seqno,
Message msg) |
void |
AckSenderWindow.addToRetransmitter(long seqno,
Message msg) |
void |
AckSenderWindow.RetransmitCommand.retransmit(long seqno,
Message msg) |
void |
AckMcastSenderWindow.RetransmitCommand.retransmit(long seqno,
Message msg,
Address dest)
Retranmit the given msg
|
void |
ProtocolStack.send(Message msg) |
Modifier and Type | Field and Description |
---|---|
protected Message[][] |
RetransmitTable.matrix |
Modifier and Type | Field and Description |
---|---|
protected Collection<Message> |
MyReceiver.msgs |
Modifier and Type | Method and Description |
---|---|
static Message |
Util.byteBufferToMessage(byte[] buffer,
int offset,
int length) |
Message |
RetransmitTable.get(long seqno) |
protected Message[] |
RetransmitTable.getRow(int index)
Returns a row.
|
Message |
RetransmitTable.putIfAbsent(long seqno,
Message msg)
Adds a message if the element at the given index is null.
|
Message |
RetransmitTable.remove(long seqno)
Removes the message with seqno from the table, nulls the index
|
Modifier and Type | Method and Description |
---|---|
static List<Message> |
Util.byteBufferToMessageList(byte[] buffer,
int offset,
int length) |
List<Message> |
RetransmitTable.get(long from,
long to) |
Collection<Message> |
MyReceiver.getMsgs() |
Modifier and Type | Method and Description |
---|---|
static short |
Util.getScope(Message msg) |
static SCOPE.ScopeHeader |
Util.getScopeHeader(Message msg) |
static Buffer |
Util.messageToByteBuffer(Message msg) |
static String |
Util.printMessage(Message msg)
Tries to read an object from the message's buffer and prints it
|
static String |
Util.printMethodCall(Message msg)
Tries to read a
MethodCall object from the message's buffer and prints it. |
boolean |
RetransmitTable.put(long seqno,
Message msg)
Adds a new message to the index computed as a function of seqno
|
Message |
RetransmitTable.putIfAbsent(long seqno,
Message msg)
Adds a message if the element at the given index is null.
|
void |
MyReceiver.receive(Message msg) |
static void |
Util.setScope(Message msg,
short scope) |
Modifier and Type | Method and Description |
---|---|
static Buffer |
Util.msgListToByteBuffer(List<Message> xmit_list)
Marshalls a list of messages.
|
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.