Package | Description |
---|---|
org.infinispan.remoting.transport.jgroups |
A transport implementation based on JGroups.
|
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.demos |
Provides demonstrations of JGroups functionality.
|
org.jgroups.demos.wb |
A distributed whiteboard applet implemented using JGroups.
|
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 |
---|---|
Object |
CommandAwareRpcDispatcher.handle(Message req)
Message contains a Command.
|
Modifier and Type | Method and Description |
---|---|
Message |
Message.clearFlag(Message.Flag... flags)
Clears a number of flags in a message
|
Message |
Message.clearTransientFlag(Message.TransientFlag... flags) |
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() |
Message |
Message.setFlag(Message.Flag... flags)
Sets a number of flags in a message
|
Message |
Message.setFlag(short flag)
Sets the flags from a short.
|
Message |
Message.setTransientFlag(Message.TransientFlag... flags)
Same as
setFlag(Flag...) except that transient flags are not marshalled |
Modifier and Type | Method and Description |
---|---|
void |
ReceiverAdapter.receive(Message msg)
Called when a message is received.
|
void |
MessageListener.receive(Message msg)
Called when a message is received.
|
void |
JChannel.send(Message msg) |
abstract void |
Channel.send(Message msg)
Sends a message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
X509Token.authenticate(AuthToken token,
Message msg) |
boolean |
SimpleToken.authenticate(AuthToken token,
Message msg) |
boolean |
RegexMembership.authenticate(AuthToken token,
Message msg) |
boolean |
MD5Token.authenticate(AuthToken token,
Message msg) |
boolean |
FixedMembershipToken.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.
|
Modifier and Type | Field and Description |
---|---|
protected Message |
Request.request_msg |
Modifier and Type | Method and Description |
---|---|
protected <T> GroupRequest<T> |
MessageDispatcher.cast(Collection<Address> dests,
Message msg,
RequestOptions options,
boolean block_for_results) |
<T> RspList<T> |
MessageDispatcher.castMessage(Collection<Address> dests,
Message msg,
RequestOptions options)
Sends a message to the members listed in dests.
|
<T> NotifyingFuture<RspList<T>> |
MessageDispatcher.castMessageWithFuture(Collection<Address> dests,
Message msg,
RequestOptions options)
Sends a message to the members listed in dests.
|
Object |
RpcDispatcher.handle(Message req)
Message contains MethodCall.
|
Object |
RequestHandler.handle(Message msg) |
Object |
MessageDispatcher.handle(Message msg) |
protected void |
RequestCorrelator.handleRequest(Message req,
RequestCorrelator.Header hdr)
Handle a request msg for this correlator
|
protected void |
RequestCorrelator.prepareResponse(Message rsp) |
void |
ReplicatedTree.receive(Message msg)
Callback.
|
void |
ReplicatedHashMap.receive(Message msg) |
boolean |
RequestCorrelator.receiveMessage(Message msg)
Handles a message coming from a layer below
|
<T> T |
MessageDispatcher.sendMessage(Message msg,
RequestOptions opts)
Sends a unicast message and - depending on the options - returns a result
|
<T> NotifyingFuture<T> |
MessageDispatcher.sendMessageWithFuture(Message msg,
RequestOptions options)
Sends a unicast message to the target defined by msg.getDest() and returns a future
|
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.sendUnicastRequest(long id,
Address target,
Message msg,
RspCollector coll)
Sends a request to a single destination
|
Constructor and Description |
---|
GroupRequest(Message msg,
RequestCorrelator corr,
Address target,
RequestOptions options) |
GroupRequest(Message msg,
RequestCorrelator corr,
Collection<Address> targets,
RequestOptions options) |
Request(Message request,
RequestCorrelator corr,
RequestOptions options) |
UnicastRequest(Message msg,
Address target,
RequestOptions options) |
UnicastRequest(Message msg,
RequestCorrelator corr,
Address target,
RequestOptions options) |
Modifier and Type | Method and Description |
---|---|
protected <T> GroupRequest<T> |
MuxRpcDispatcher.cast(Collection<Address> dests,
Message msg,
RequestOptions options,
boolean blockForResults) |
protected <T> GroupRequest<T> |
MuxMessageDispatcher.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 |
---|---|
void |
Draw.receive(Message msg) |
void |
Chat.receive(Message msg) |
Modifier and Type | Method and Description |
---|---|
void |
Whiteboard.receive(Message m) |
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 |
---|---|
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,
short conn_id,
boolean first,
Message msg,
Event evt)
Check whether the hashtable contains an entry e for
sender (create if not). |
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 abstract Object |
FlowControl.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 |
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.
|
protected void |
MPING.sendMcastDiscoveryRequest(Message msg) |
protected void |
Discovery.sendMcastDiscoveryRequest(Message discovery_request) |
protected void |
BPING.sendMcastDiscoveryRequest(Message msg) |
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).
|
void |
AckSenderWindow.add(long seqno,
Message msg)
Adds a new message to the retransmission table.
|
boolean |
AckReceiverWindow.add(long seqno,
Message msg)
Adds a new message.
|
byte |
AckReceiverWindow.add2(long seqno,
Message msg)
Adds a message if not yet received
|
void |
AckSenderWindow.addToMessages(long seqno,
Message msg) |
void |
AckSenderWindow.RetransmitCommand.retransmit(long seqno,
Message msg) |
void |
ProtocolStack.send(Message msg) |
Modifier and Type | Field and Description |
---|---|
protected Message[][] |
RetransmitTable.matrix |
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 |
---|---|
List<Message> |
RetransmitTable.get(long from,
long to) |
Modifier and Type | Method and Description |
---|---|
static short |
Util.getScope(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
|
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.
|
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 © 2012 JBoss by Red Hat. All Rights Reserved.