public class ABP extends Protocol
Modifier and Type | Class and Description |
---|---|
protected static class |
ABP.ABPHeader |
protected class |
ABP.Entry |
protected static class |
ABP.Type |
Modifier and Type | Field and Description |
---|---|
protected Address |
local_addr |
protected java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry> |
recv_map |
protected long |
resend_interval |
protected java.util.concurrent.ConcurrentHashMap<Address,ABP.Entry> |
send_map |
protected TimeScheduler |
timer |
after_creation_hook, down_prot, ergonomics, id, log, name, stack, stats, up_prot
Constructor and Description |
---|
ABP() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
down(Event evt)
An event is to be sent down the stack.
|
protected ABP.Entry |
getEntry(java.util.concurrent.ConcurrentMap<Address,ABP.Entry> map,
Address dest) |
void |
init()
Called after instance has been created (null constructor) and before protocol is started.
|
java.lang.Object |
up(Event evt)
An event was received from the layer below.
|
accept, afterCreationHook, destroy, dumpStats, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, isErgonomics, level, parse, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, start, statsEnabled, stop, up
protected long resend_interval
protected TimeScheduler timer
protected Address local_addr
public void init() throws java.lang.Exception
Protocol
public java.lang.Object down(Event evt)
Protocol
down_prot.down()
. In case of a GET_ADDRESS event (which tries to
retrieve the stack's address from one of the bottom layers), the layer may need to send
a new response event back up the stack using up_prot.up()
.public java.lang.Object up(Event evt)
Protocol
down_prot.down()
or c) the event (or another event) is sent up
the stack using up_prot.up()
.Copyright © 1998-2020 Red Hat. All Rights Reserved.