public final class BgpLinkAttrMaxLinkBandwidth extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BANDWIDTH_LEN |
static int |
NO_OF_BITS |
| Modifier and Type | Method and Description |
|---|---|
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() |
float |
linkAttrMaxLinkBandwidth()
Returns Maximum link bandwidth.
|
static BgpLinkAttrMaxLinkBandwidth |
of(float maxBandwidth,
short type)
Returns object of this class with specified values.
|
static BgpLinkAttrMaxLinkBandwidth |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short type)
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 BgpLinkAttrMaxLinkBandwidth of(float maxBandwidth, short type)
maxBandwidth - Maximum link bandwidth.type - TLV typepublic static BgpLinkAttrMaxLinkBandwidth read(org.jboss.netty.buffer.ChannelBuffer cb, short type) throws BgpParseException
cb - Channel buffertype - type of this tlvBgpParseException - while parsing BgpLinkAttrMaxLinkBandwidthpublic float linkAttrMaxLinkBandwidth()
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