public class MultiProtocolExtnCapabilityTlv 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 |
|---|
MultiProtocolExtnCapabilityTlv(short afi,
byte res,
byte safi)
Constructor to initialize variables.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getAfi()
Returns afi Address Family Identifiers value.
|
byte |
getRes()
Returns res reserved field value.
|
byte |
getSafi()
Returns safi Subsequent Address Family Identifier value.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static MultiProtocolExtnCapabilityTlv |
of(short afi,
byte res,
byte safi)
Returns object of MultiProtocolExtnCapabilityTlv.
|
static BgpValueType |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and returns object of MultiprotocolCapabilityTlv.
|
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 MultiProtocolExtnCapabilityTlv(short afi,
byte res,
byte safi)
afi - Address Family Identifiersres - reserved fieldsafi - Subsequent Address Family Identifierpublic static MultiProtocolExtnCapabilityTlv of(short afi, byte res, byte safi)
afi - Address Family Identifiersres - reserved fieldsafi - Subsequent Address Family Identifierpublic short getAfi()
public byte getRes()
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 BgpValueType read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - of type channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.