public class AutonomousSystemTlv extends Object implements BgpValueType
| Constructor and Description |
|---|
AutonomousSystemTlv(int asNum)
Constructor to initialize asNum.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
int |
getAsNum()
Returns opaque value of AS Number.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static AutonomousSystemTlv |
of(int asNum)
Returns object of this class with specified asNum.
|
static AutonomousSystemTlv |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of AutonomousSystemTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short TYPE
public static final short LENGTH
public AutonomousSystemTlv(int asNum)
asNum - 32 Bit AS Numberpublic static AutonomousSystemTlv of(int asNum)
asNum - 32 Bit AS Numberpublic int getAsNum()
public int write(org.jboss.netty.buffer.ChannelBuffer c)
BgpValueTypewrite in interface BgpValueTypec - channel bufferpublic static AutonomousSystemTlv read(org.jboss.netty.buffer.ChannelBuffer c)
c - ChannelBufferpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object