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 classABP.ABPHeaderDeprecated.protected classABP.EntryDeprecated.protected static classABP.TypeDeprecated.
-
Field Summary
Fields Modifier and Type Field Description protected Addresslocal_addrDeprecated.protected java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry>recv_mapDeprecated.protected longresend_intervalDeprecated.protected java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry>send_mapDeprecated.protected TimeSchedulertimerDeprecated.-
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.Objectdown(Event evt)Deprecated.An event is to be sent down the stack.java.lang.Objectdown(Message msg)Deprecated.A message is sent down the stack.protected ABP.EntrygetEntry(java.util.concurrent.ConcurrentMap<Address,ABP.Entry> map, Address dest)Deprecated.voidinit()Deprecated.Called after instance has been created (null constructor) and before protocol is started.java.lang.Objectup(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.ExceptionDeprecated.Description copied from class:ProtocolCalled 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:ProtocolAn 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:ProtocolA 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:ProtocolA single message was received. Protocols may examine the message and do something (e.g. add a header) with it before passing it up.
-
-