public class BgpLinkAttrUnRsrvdLinkBandwidth extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BANDWIDTH_LEN |
static int |
NO_OF_BITS |
static int |
NO_OF_PRIORITY |
| Constructor and Description |
|---|
BgpLinkAttrUnRsrvdLinkBandwidth(java.util.List<java.lang.Float> maxUnResBandwidth,
short sType)
Constructor to initialize the values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.Float> |
getLinkAttrUnRsrvdLinkBandwidth()
Returns maximum unreserved bandwidth.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpLinkAttrUnRsrvdLinkBandwidth |
of(java.util.List<java.lang.Float> linkPfxMetric,
short sType)
Returns object of this class with specified values.
|
static BgpLinkAttrUnRsrvdLinkBandwidth |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short sType)
Reads the BGP link attributes of Maximum link bandwidth.
|
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 MAX_BANDWIDTH_LEN
public static final int NO_OF_BITS
public static final int NO_OF_PRIORITY
public BgpLinkAttrUnRsrvdLinkBandwidth(java.util.List<java.lang.Float> maxUnResBandwidth,
short sType)
maxUnResBandwidth - Maximum Unreserved bandwidthsType - returns the tag valuepublic static BgpLinkAttrUnRsrvdLinkBandwidth of(java.util.List<java.lang.Float> linkPfxMetric, short sType)
linkPfxMetric - Prefix MetricsType - returns the tag valuepublic static BgpLinkAttrUnRsrvdLinkBandwidth read(org.jboss.netty.buffer.ChannelBuffer cb, short sType) throws BgpParseException
cb - Channel buffersType - returns the tag valueBgpParseException - while parsing BgpLinkAttrMaxLinkBandwidthpublic java.util.List<java.lang.Float> getLinkAttrUnRsrvdLinkBandwidth()
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