|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.Extension | +--hypercast.RouteRecord
This class defines the route record of an OL_Message. It stores a sequence of logical addresses of the nodes this message passed through.
Field Summary |
Fields inherited from class hypercast.Extension |
FSM, HEADER_NONE, RAW_DATA, ROUTE_RECORD, SECURITY |
Constructor Summary | |
RouteRecord()
Constructs a empty route record. |
|
RouteRecord(byte[] contents,
hypercast.I_Node node)
Constructs the route record from an byte array. |
|
RouteRecord(hypercast.RouteRecord old_rr)
Constructs a route record by cloning the given route record instance. |
Method Summary | |
hypercast.Extension |
Clone()
Return a new RouteRecord extension instance by cloning this extension. |
boolean |
contains(hypercast.I_LogicalAddress query)
Checks if the specified logical address is contained in this RouteRecord. |
byte |
getExtensionType()
Returns the type of extension. |
int |
getSize()
Returns the length of the byte array of this extension. |
void |
insertLA(hypercast.I_LogicalAddress la,
int max_size)
Deprecated. use insertLogicalAddress |
void |
insertLogicalAddress(hypercast.I_LogicalAddress la,
int max_size)
Inserts a logical address to the route record |
byte[] |
toByteArray()
Returns the byte array of the extension header. |
Methods inherited from class hypercast.Extension |
createExtension, createExtension, createExtension, createExtension, createExtension, isValidHeader, toString, typeToString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RouteRecord()
public RouteRecord(hypercast.RouteRecord old_rr)
public RouteRecord(byte[] contents, hypercast.I_Node node)
contents
- the overlay messagenode
- the node used to construct logical addressMethod Detail |
public hypercast.Extension Clone()
Clone
in class Extension
public byte getExtensionType()
getExtensionType
in class Extension
public int getSize()
getSize
in class Extension
public void insertLA(hypercast.I_LogicalAddress la, int max_size)
la
- the address to be insertedpublic void insertLogicalAddress(hypercast.I_LogicalAddress la, int max_size)
la
- the address to be insertedpublic byte[] toByteArray()
toByteArray
in class Extension
public boolean contains(hypercast.I_LogicalAddress query)
query
- The logical address for which the search is being done.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |