Package org.jgroups.protocols
Class DETECT_LOOPBACKS
- java.lang.Object
-
- org.jgroups.stack.Protocol
-
- org.jgroups.protocols.DETECT_LOOPBACKS
-
public class DETECT_LOOPBACKS extends Protocol
Detects unicast loopbacks: messages where dest == local address- Since:
- 5.1.6
- Author:
- Bela Ban
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.atomic.AtomicInteger
count
protected Address
local_addr
protected boolean
print_to_stdout
-
Fields inherited from class org.jgroups.stack.Protocol
after_creation_hook, down_prot, ergonomics, id, log, stack, stats, up_prot
-
-
Constructor Summary
Constructors Constructor Description DETECT_LOOPBACKS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
down(Event evt)
An event is to be sent down the stack.java.lang.Object
down(Message msg)
A message is sent down the stack.-
Methods inherited from class org.jgroups.stack.Protocol
accept, afterCreationHook, destroy, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, init, isErgonomics, level, parse, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, start, statsEnabled, stop, up, up, up
-
-
-
-
Field Detail
-
print_to_stdout
protected boolean print_to_stdout
-
local_addr
protected Address local_addr
-
count
protected final java.util.concurrent.atomic.AtomicInteger count
-
-
Method Detail
-
down
public java.lang.Object down(Event evt)
Description copied from class:Protocol
An event is to be sent down the stack. A protocol may want to examine its type and perform some action on it, depending on the event's type. If the event is a message MSG, then the protocol may need to add a header to it (or do nothing at all) before sending it down the stack usingdown_prot.down()
.
-
-