public class BgpLinkAttrMplsProtocolMask extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRLINK_MPLSPROTOMASK |
static byte |
FIRST_BIT |
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(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.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.
|
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 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 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