public class RpdCapabilityTlv extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
LENGTH |
protected static org.slf4j.Logger |
log |
static byte |
TYPE |
| Constructor and Description |
|---|
RpdCapabilityTlv(byte sendReceive)
Creates instance of route policy distribution capability.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getAfi()
Returns address family identifier value.
|
byte |
getSafi()
Returns subsequent address family identifier value.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static RpdCapabilityTlv |
of(byte sendReceive)
Creates instance of RpdCapabilityTlv.
|
static RpdCapabilityTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of RpdCapabilityTlv.
|
byte |
sendReceive()
Returns value of send receive field of route policy distribution capability.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte TYPE
public static final byte LENGTH
public RpdCapabilityTlv(byte sendReceive)
sendReceive - value indicate wherether flow route is only for receive or send or both.public static RpdCapabilityTlv of(byte sendReceive)
sendReceive - value indicate wherether flow route is only for receive or send or both.public byte sendReceive()
public short getAfi()
public byte getSafi()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic static RpdCapabilityTlv read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - type of channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object