|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.route.RouteZrpZdp.MessageZdp
public static class RouteZrpZdp.MessageZdp
ZDP (Zone Discovery Protocol) packet.
todo: TBD (see draft ZDP specification)
Field Summary |
---|
Fields inherited from interface jist.swans.misc.Message |
---|
NULL |
Constructor Summary | |
---|---|
RouteZrpZdp.MessageZdp(int capacity,
byte compress)
Create new packet with given initial capacity. |
Method Summary | |
---|---|
void |
addLink(Link link,
short id,
boolean drop)
Add link to the packet structure. |
void |
freeze()
Freeze packet; make it immutable. |
void |
getBytes(byte[] b,
int offset)
Store packet into byte array. |
Link |
getLink(int i)
Return link source-destination pair. |
boolean |
getLinkDrop(int i)
Return whether link has drop bit set. |
short |
getLinkId(int i)
Return link identifier. |
int |
getNumLinks()
Return number of links in packet. |
int |
getSize()
Return packet size or Constants.ZERO_WIRE_SIZE. |
boolean |
isFrozen()
Return whether packet is immutable. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RouteZrpZdp.MessageZdp(int capacity, byte compress)
capacity
- initial packet link capacitycompress
- packet compression mode/formatMethod Detail |
---|
public void addLink(Link link, short id, boolean drop)
link
- source-destination pairid
- destination sequenced link identifierdrop
- whether link is up or downpublic void freeze()
public boolean isFrozen()
public int getNumLinks()
public Link getLink(int i)
i
- link number
public short getLinkId(int i)
i
- link number
public boolean getLinkDrop(int i)
i
- link number
public int getSize()
getSize
in interface Message
public void getBytes(byte[] b, int offset)
getBytes
in interface Message
b
- destination byte arrayoffset
- byte array starting offsetpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |