public final class BgpLinkAttrProtectionType extends Object implements BgpValueType
| Modifier and Type | Class and Description |
|---|---|
static class |
BgpLinkAttrProtectionType.ProtectionType
Enum to provide Link protection types.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRLINK_PROTECTIONTYPE |
static int |
LINK_PROTECTION_LEN |
| Constructor and Description |
|---|
BgpLinkAttrProtectionType(byte linkProtectionType)
Constructor to initialize the value.
|
| 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() |
static BgpLinkAttrProtectionType |
of(byte linkProtectionType)
Returns object of this class with specified values.
|
BgpLinkAttrProtectionType.ProtectionType |
protectionType()
Returns Link Protection Type.
|
static BgpLinkAttrProtectionType |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the BGP link attributes protection type.
|
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_PROTECTIONTYPE
public static final int LINK_PROTECTION_LEN
public BgpLinkAttrProtectionType(byte linkProtectionType)
linkProtectionType - link protection typepublic static BgpLinkAttrProtectionType of(byte linkProtectionType)
linkProtectionType - link protection typepublic static BgpLinkAttrProtectionType read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - Channel bufferBgpParseException - while parsing BgpLinkAttrProtectionTypepublic BgpLinkAttrProtectionType.ProtectionType protectionType() throws BgpParseException
BgpParseException - when failed to parse link protection typepublic 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