public class BgpLinkAttrIgpMetric extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRLINK_IGPMETRIC |
static int |
ATTRLINK_MAX_LEN |
static int |
ISIS_SMALL_METRIC |
static int |
ISIS_WIDE_METRIC |
static int |
OSPF_LINK_METRIC |
| Constructor and Description |
|---|
BgpLinkAttrIgpMetric(int igpMetric,
int igpMetricLen)
Constructor to initialize the value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
attrLinkIgpMetric()
Returns the variable length IGP metric data.
|
int |
attrLinkIgpMetricLength()
Returns IGP metric data length.
|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpLinkAttrIgpMetric |
of(int igpMetric,
int igpMetricLen)
Returns object of this class with specified values.
|
static BgpLinkAttrIgpMetric |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the BGP link attributes IGP Metric.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final int ATTRLINK_IGPMETRIC
public static final int ATTRLINK_MAX_LEN
public static final int ISIS_SMALL_METRIC
public static final int OSPF_LINK_METRIC
public static final int ISIS_WIDE_METRIC
public BgpLinkAttrIgpMetric(int igpMetric,
int igpMetricLen)
igpMetric - 3 byte IGP metric data.igpMetricLen - length of IGP metric data.public static BgpLinkAttrIgpMetric of(int igpMetric, int igpMetricLen)
igpMetric - 3 byte IGP metric data.igpMetricLen - length of IGP metric data.public static BgpLinkAttrIgpMetric read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - Channel bufferBgpParseException - while parsing BgpLinkAttrIgpMetricpublic int attrLinkIgpMetric()
public int attrLinkIgpMetricLength()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object