public class RibEntry extends Object implements Decodable
Constructor and Description |
---|
RibEntry()
Default constructor.
|
RibEntry(ByteBuffer input)
Constructor from wire format.
|
Modifier and Type | Method and Description |
---|---|
RibEntry |
addRoute(Route route)
Add route.
|
void |
clearRoutes()
Clear all routes.
|
net.named_data.jndn.Name |
getName() |
List<Route> |
getRoutes() |
RibEntry |
setName(net.named_data.jndn.Name name)
Set RIB entry name.
|
void |
setRoutes(List<Route> routes)
Set routes.
|
String |
toString() |
void |
wireDecode(ByteBuffer input)
Decode the input from its TLV format.
|
void |
wireDecode(net.named_data.jndn.encoding.tlv.TlvDecoder decoder)
Decode data structure from TLV wire format.
|
net.named_data.jndn.util.Blob |
wireEncode()
Encode using a new TLV encoder.
|
void |
wireEncode(net.named_data.jndn.encoding.tlv.TlvEncoder encoder)
Encode as part of an existing encode context.
|
public RibEntry()
public RibEntry(ByteBuffer input) throws net.named_data.jndn.encoding.EncodingException
input
- wire formatnet.named_data.jndn.encoding.EncodingException
- when decoding failspublic final net.named_data.jndn.util.Blob wireEncode()
public final void wireEncode(net.named_data.jndn.encoding.tlv.TlvEncoder encoder)
encoder
- TlvEncoder instancepublic final void wireDecode(ByteBuffer input) throws net.named_data.jndn.encoding.EncodingException
input
- The input buffer to decode. This reads from position() to
limit(), but does not change the position.net.named_data.jndn.encoding.EncodingException
- For invalid encoding.public void wireDecode(net.named_data.jndn.encoding.tlv.TlvDecoder decoder) throws net.named_data.jndn.encoding.EncodingException
wireDecode
in interface Decodable
decoder
- Instance of TlvDecodernet.named_data.jndn.encoding.EncodingException
- when decoding failspublic net.named_data.jndn.Name getName()
public RibEntry setName(net.named_data.jndn.Name name)
name
- New name for the RIB entrypublic RibEntry addRoute(Route route)
route
- Route to add to the RIB entrypublic void clearRoutes()
public void setRoutes(List<Route> routes)
routes
- List of routes to associate with RIB entry. Will replace previously associated routes.Copyright © 2016. All rights reserved.