public class BgpLinkAttrTeDefaultMetric extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRLINK_TEDEFAULTMETRIC |
protected static org.slf4j.Logger |
log |
static int |
TE_DATA_LEN |
| Constructor and Description |
|---|
BgpLinkAttrTeDefaultMetric(int linkTeMetric)
Constructor to initialize the value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
attrLinkDefTeMetric()
Returns the TE default metrics.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpLinkAttrTeDefaultMetric |
of(int linkTeMetric)
Returns object of this class with specified values.
|
static BgpLinkAttrTeDefaultMetric |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the BGP link attributes of TE default 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 ATTRLINK_TEDEFAULTMETRIC
public static final int TE_DATA_LEN
public BgpLinkAttrTeDefaultMetric(int linkTeMetric)
linkTeMetric - TE default metricpublic static BgpLinkAttrTeDefaultMetric of(int linkTeMetric)
linkTeMetric - TE default metricpublic static BgpLinkAttrTeDefaultMetric read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - Channel bufferBgpParseException - while parsing BgpLinkAttrTeDefaultMetricpublic int attrLinkDefTeMetric()
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.