|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.route.RouteZrpBrp
public class RouteZrpBrp
Zone Routing Protocol: Bordercast Resolution (sub)Protocol: Default implementation.
Nested Class Summary | |
---|---|
static class |
RouteZrpBrp.QueryCoverageEntry
BRP query entry. |
static class |
RouteZrpBrp.QueryKey
BRP query key. |
Field Summary | |
---|---|
static long |
COVERAGE_LIFETIME
query coverage expiration. |
static long |
COVERAGE_REFRESH
query coverage refresh timer (check for expiration). |
static long |
JITTER
brp delivery jitter. |
static org.apache.log4j.Logger |
logBRP
logger for BRP events. |
Constructor Summary | |
---|---|
RouteZrpBrp(RouteZrp zrp)
Create new "default" BRP (ZRP sub-protocol) handler. |
|
RouteZrpBrp(RouteZrp zrp,
java.lang.String config)
Create new "default" BRP (ZRP sub-protocol) handler. |
Method Summary | |
---|---|
void |
receive(RouteInterface.Zrp.MessageBrp msg,
NetAddress from)
Process incoming BRP packet. |
void |
send(RouteInterface.Zrp.MessageIerp msg)
Bordercast a query. |
void |
start()
Start running protocol. |
void |
timeout()
Timer expiration processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger logBRP
public static final long COVERAGE_LIFETIME
public static final long COVERAGE_REFRESH
public static final long JITTER
Constructor Detail |
---|
public RouteZrpBrp(RouteZrp zrp)
zrp
- object reference to zrp routing frameworkpublic RouteZrpBrp(RouteZrp zrp, java.lang.String config)
zrp
- object reference to zrp routing frameworkconfig
- configuration stringMethod Detail |
---|
public void start()
start
in interface Protocol
public void receive(RouteInterface.Zrp.MessageBrp msg, NetAddress from)
receive
in interface RouteInterface.Zrp.Brp
msg
- brp packetfrom
- source of incoming brp packetpublic void send(RouteInterface.Zrp.MessageIerp msg)
send
in interface RouteInterface.Zrp.Brp
msg
- query to bordercastpublic void timeout()
timeout
in interface Timer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |