public class BgpPrefixAttrRouteTag extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
ATTR_PREFIX_ROUTETAG |
protected static org.slf4j.Logger |
log |
static short |
SIZE |
| Constructor and Description |
|---|
BgpPrefixAttrRouteTag(List<Integer> pfxRouteTag)
Constructor to initialize the values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
List<Integer> |
getPfxRouteTag()
Returns the prefix route tag.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpPrefixAttrRouteTag |
of(ArrayList<Integer> pfxRouteTag)
Returns object of this class with specified values.
|
static BgpPrefixAttrRouteTag |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the Route Tag.
|
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 short ATTR_PREFIX_ROUTETAG
public static final short SIZE
public static BgpPrefixAttrRouteTag of(ArrayList<Integer> pfxRouteTag)
pfxRouteTag - Prefix Metricpublic static BgpPrefixAttrRouteTag read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing BgpPrefixAttrRouteTagpublic List<Integer> getPfxRouteTag()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object