public final class BgpAttrNodeFlagBitTlv extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRNODE_FLAGBIT |
static byte |
FIRST_BIT |
static byte |
FOURTH_BIT |
protected static org.slf4j.Logger |
log |
static byte |
SECOND_BIT |
static byte |
THIRD_BIT |
| Constructor and Description |
|---|
BgpAttrNodeFlagBitTlv(boolean bOverloadBit,
boolean bAttachedBit,
boolean bExternalBit,
boolean bAbrBit)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
abrBit()
Returns ABR Bit.
|
boolean |
attachedBit()
Returns Attached Bit.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
boolean |
externalBit()
Returns External Bit.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpAttrNodeFlagBitTlv |
of(boolean bOverloadBit,
boolean bAttachedBit,
boolean bExternalBit,
boolean bAbrBit)
Returns object of this class with specified values.
|
boolean |
overLoadBit()
Returns Overload Bit.
|
static BgpAttrNodeFlagBitTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the Node Flag Bits.
|
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 ATTRNODE_FLAGBIT
public static final byte FIRST_BIT
public static final byte SECOND_BIT
public static final byte THIRD_BIT
public static final byte FOURTH_BIT
public BgpAttrNodeFlagBitTlv(boolean bOverloadBit,
boolean bAttachedBit,
boolean bExternalBit,
boolean bAbrBit)
bOverloadBit - Overload bitbAttachedBit - Attached bitbExternalBit - External bitbAbrBit - ABR Bitpublic static BgpAttrNodeFlagBitTlv of(boolean bOverloadBit, boolean bAttachedBit, boolean bExternalBit, boolean bAbrBit)
bOverloadBit - Overload bitbAttachedBit - Attached bitbExternalBit - External bitbAbrBit - ABR Bitpublic static BgpAttrNodeFlagBitTlv read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing BgpAttrNodeFlagBitTlvpublic boolean overLoadBit()
public boolean attachedBit()
public boolean externalBit()
public boolean abrBit()
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.