public class BgpLinkAttrMplsProtocolMask extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRLINK_MPLSPROTOMASK |
static byte |
FIRST_BIT |
protected static org.slf4j.Logger |
log |
static int |
MASK_BYTE_LEN |
static byte |
SECOND_BIT |
| Constructor and Description |
|---|
BgpLinkAttrMplsProtocolMask(boolean bLdp,
boolean bRsvpTe)
Constructor to initialize the values.
|
| 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() |
boolean |
ldpBit()
Returns true if LDP bit is set.
|
static BgpLinkAttrMplsProtocolMask |
of(boolean bLdp,
boolean bRsvpTe)
Returns object of this class with specified values.
|
static BgpLinkAttrMplsProtocolMask |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the BGP link attributes MPLS protocol mask.
|
boolean |
rsvpBit()
Returns RSVP TE information.
|
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 ATTRLINK_MPLSPROTOMASK
public static final int MASK_BYTE_LEN
public static final byte FIRST_BIT
public static final byte SECOND_BIT
public BgpLinkAttrMplsProtocolMask(boolean bLdp,
boolean bRsvpTe)
bLdp - boolean value true if LDP flag is availablebRsvpTe - boolean value true if RSVP TE information is availablepublic static BgpLinkAttrMplsProtocolMask of(boolean bLdp, boolean bRsvpTe)
bLdp - boolean value true if LDP flag is availablebRsvpTe - boolean value true if RSVP TE information is availablepublic static BgpLinkAttrMplsProtocolMask read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - Channel bufferBgpParseException - while parsing BgpLinkAttrMplsProtocolMaskpublic boolean ldpBit()
public boolean rsvpBit()
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