public final class BgpLinkAttrMaxLinkBandwidth extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static int |
MAX_BANDWIDTH_LEN |
static int |
NO_OF_BITS |
short |
type |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(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.
|
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 MAX_BANDWIDTH_LEN
public static final int NO_OF_BITS
public short type
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 write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object