|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteZrpBrpFlood
public class RouteZrpBrpFlood
Zone Routing Protocol: Bordercast Resolution (sub)Protocol: Naive flooding.
| Nested Class Summary | |
|---|---|
private static class |
RouteZrpBrpFlood.MessageBrpFlood
Query flooding packet. |
| 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 |
logBRPFlood
logger for BRP events. |
private java.util.HashMap |
queryCoverage
bordercast supression table: QueryKey - QueryCoverageEntry. |
private RouteZrp |
zrp
reference to zrp routing framework. |
| Constructor Summary | |
|---|---|
RouteZrpBrpFlood(RouteZrp zrp)
Create new "default" BRP (ZRP sub-protocol) handler. |
|
RouteZrpBrpFlood(RouteZrp zrp,
java.lang.String config)
Create new "default" BRP (ZRP sub-protocol) handler. |
|
| Method Summary | |
|---|---|
private RouteZrpBrp.QueryCoverageEntry |
getQueryCoverageEntry(NetAddress src,
short seq)
Return query coverage entry for given source and identifier. |
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 logBRPFlood
public static final long COVERAGE_LIFETIME
public static final long COVERAGE_REFRESH
public static final long JITTER
private RouteZrp zrp
private java.util.HashMap queryCoverage
| Constructor Detail |
|---|
public RouteZrpBrpFlood(RouteZrp zrp)
zrp - object reference to zrp routing framework
public RouteZrpBrpFlood(RouteZrp zrp,
java.lang.String config)
zrp - object reference to zrp routing frameworkconfig - configuration string| Method Detail |
|---|
private RouteZrpBrp.QueryCoverageEntry getQueryCoverageEntry(NetAddress src,
short seq)
src - query source addressseq - query source identifier
public void start()
start in interface Protocol
public void receive(RouteInterface.Zrp.MessageBrp msg,
NetAddress from)
receive in interface RouteInterface.Zrp.Brpmsg - brp packetfrom - source of incoming brp packetpublic void send(RouteInterface.Zrp.MessageIerp msg)
send in interface RouteInterface.Zrp.Brpmsg - 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 | ||||||||