public class BgpPrefixAttrMetric extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTR_PREFIX_LEN |
static int |
ATTR_PREFIX_METRIC |
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
BgpPrefixAttrMetric(int linkPfxMetric)
Constructor to initialize value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
attrPfxMetric()
Returns the Prefix Metric.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpPrefixAttrMetric |
of(int linkPfxMetric)
Returns object of this class with specified values.
|
static BgpPrefixAttrMetric |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the Prefix Metric.
|
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 ATTR_PREFIX_METRIC
public static final int ATTR_PREFIX_LEN
public BgpPrefixAttrMetric(int linkPfxMetric)
linkPfxMetric - Prefix Metricpublic static BgpPrefixAttrMetric of(int linkPfxMetric)
linkPfxMetric - Prefix Metricpublic static BgpPrefixAttrMetric read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing BgpPrefixAttrMetricpublic int attrPfxMetric()
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.