public class FourOctetAsNumCapabilityTlv extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
LENGTH |
protected static org.slf4j.Logger |
log
support to indicate its support for four-octet AS numbers -CAPABILITY TLV format.
|
static byte |
TYPE |
| Constructor and Description |
|---|
FourOctetAsNumCapabilityTlv(int rawValue)
constructor to initialize rawValue.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
int |
getInt()
Returns value of TLV.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static FourOctetAsNumCapabilityTlv |
of(int raw)
constructor to initialize raw.
|
static FourOctetAsNumCapabilityTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of FourOctetAsNumCapabilityTlv.
|
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 FourOctetAsNumCapabilityTlv(int rawValue)
rawValue - FourOctetAsNumCapabilityTlvpublic static FourOctetAsNumCapabilityTlv of(int raw)
raw - AS numberpublic int getInt()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic static FourOctetAsNumCapabilityTlv read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - type of channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.