Package org.jgroups.protocols
Class ABP
- java.lang.Object
-
- org.jgroups.stack.Protocol
-
- org.jgroups.protocols.ABP
-
@Deprecated public class ABP extends Protocol
Deprecated.Mainly used as a design study of Pluscal / TLA+Alternating Bit Protocol. Use without any UNICASTX protocol. Place it somewhere below NAKACKX. Provides reliable p2p unicasting. Design is in ./doc/design/ABP.txt- Since:
- 3.6.3
- Author:
- Bela Ban
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ABP.ABPHeader
Deprecated.protected class
ABP.Entry
Deprecated.protected static class
ABP.Type
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected Address
local_addr
Deprecated.protected java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry>
recv_map
Deprecated.protected long
resend_interval
Deprecated.protected java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry>
send_map
Deprecated.protected TimeScheduler
timer
Deprecated.-
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 ABP()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
down(Event evt)
Deprecated.An event is to be sent down the stack.java.lang.Object
down(Message msg)
Deprecated.A message is sent down the stack.protected ABP.Entry
getEntry(java.util.concurrent.ConcurrentMap<Address,ABP.Entry> map, Address dest)
Deprecated.void
init()
Deprecated.Called after instance has been created (null constructor) and before protocol is started.java.lang.Object
up(Message msg)
Deprecated.A single message was received.-
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, isErgonomics, level, parse, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, start, statsEnabled, stop, up, up
-
-
-
-
Field Detail
-
resend_interval
protected long resend_interval
Deprecated.
-
send_map
protected final java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry> send_map
Deprecated.
-
recv_map
protected final java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry> recv_map
Deprecated.
-
timer
protected TimeScheduler timer
Deprecated.
-
local_addr
protected Address local_addr
Deprecated.
-
-
Method Detail
-
init
public void init() throws java.lang.Exception
Deprecated.Description copied from class:Protocol
Called after instance has been created (null constructor) and before protocol is started. Properties are already set. Other protocols are not yet connected and events cannot yet be sent.
-
down
public java.lang.Object down(Event evt)
Deprecated.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()
.
-
down
public java.lang.Object down(Message msg)
Deprecated.Description copied from class:Protocol
A message is sent down the stack. Protocols may examine the message and do something (e.g. add a header) with it before passing it down.
-
up
public java.lang.Object up(Message msg)
Deprecated.Description copied from class:Protocol
A single message was received. Protocols may examine the message and do something (e.g. add a header) with it before passing it up.
-
-