public class BgpLinkAttrName extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRLINK_NAME |
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
BgpLinkAttrName(byte[] linkName)
Constructor to initialize the values.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
attrLinkName()
Returns the link name.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpLinkAttrName |
of(byte[] linkName)
Returns object of this class with specified values.
|
static BgpLinkAttrName |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the BGP link attributes Name.
|
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 int ATTRLINK_NAME
public BgpLinkAttrName(byte[] linkName)
linkName - link namepublic static BgpLinkAttrName of(byte[] linkName)
linkName - Prefix Metricpublic static BgpLinkAttrName read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - Channel bufferBgpParseException - while parsing BgpLinkAttrNamepublic byte[] attrLinkName()
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 - objectCopyright © 2016. All rights reserved.