|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteZrpZdp.LinkEntry
private static class RouteZrpZdp.LinkEntry
ZDP link entry.
| Field Summary | |
|---|---|
static RouteZrpZdp.LinkEntry[] |
EMPTY_ARRAY
Empty link entry array. |
static byte |
FLAG_DROP
drop flag mask. |
static byte |
FLAG_FLUSH
flush flag mask. |
static byte |
FLAG_FRESH
fresh flag mask. |
private byte |
flags
flush, link failure and freshness bits. |
private short |
id
link sequence identifier. |
private Link |
link
source-destination pair. |
| Constructor Summary | |
|---|---|
RouteZrpZdp.LinkEntry(Link link,
short id,
boolean drop)
Create new link entry. |
|
| Method Summary | |
|---|---|
boolean |
isDrop()
Whether drop flag is set. |
boolean |
isFlush()
Whether flush flag is set. |
boolean |
isFresh()
Whether link entry has been processed. |
void |
processed()
Clears information freshness indicator. |
void |
set(short id,
boolean drop)
Set link entry information. |
private void |
setDrop(boolean value)
Set drop flag. |
private void |
setFlush(boolean value)
Set flush flag. |
private void |
setFresh(boolean value)
Set freshness flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RouteZrpZdp.LinkEntry[] EMPTY_ARRAY
public static final byte FLAG_DROP
public static final byte FLAG_FRESH
public static final byte FLAG_FLUSH
private final Link link
private short id
private byte flags
| Constructor Detail |
|---|
public RouteZrpZdp.LinkEntry(Link link,
short id,
boolean drop)
link - source-destination pairid - link sequence identifierdrop - link failure indicator| Method Detail |
|---|
public void set(short id,
boolean drop)
id - link sequence identifierdrop - link failure indicatorpublic boolean isFresh()
private void setFresh(boolean value)
value - whether to set or clear freshness flagpublic void processed()
public boolean isDrop()
private void setDrop(boolean value)
value - whether to set or clear drop flagpublic boolean isFlush()
private void setFlush(boolean value)
value - whether to set or clear flush flag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||