public class BgpPrefixLSIdentifier
extends java.lang.Object
implements java.lang.Comparable<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_AND_LEN |
| Constructor and Description |
|---|
BgpPrefixLSIdentifier()
Resets parameters.
|
BgpPrefixLSIdentifier(NodeDescriptors localNodeDescriptors,
java.util.List<BgpValueType> prefixDescriptor)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
NodeDescriptors |
getLocalNodeDescriptors()
Returns local node descriptors.
|
java.util.List<BgpValueType> |
getPrefixdescriptor()
Returns Prefix descriptors.
|
int |
hashCode() |
static NodeDescriptors |
parseLocalNodeDescriptors(org.jboss.netty.buffer.ChannelBuffer cb,
byte protocolId)
Parse local node descriptors.
|
static java.util.List<BgpValueType> |
parsePrefixDescriptors(org.jboss.netty.buffer.ChannelBuffer cb)
Parse list of prefix descriptors.
|
static BgpPrefixLSIdentifier |
parsePrefixIdendifier(org.jboss.netty.buffer.ChannelBuffer cb,
byte protocolId)
Reads the channel buffer and parses Prefix Identifier.
|
java.lang.String |
toString() |
public static final int TYPE_AND_LEN
public BgpPrefixLSIdentifier()
public BgpPrefixLSIdentifier(NodeDescriptors localNodeDescriptors, java.util.List<BgpValueType> prefixDescriptor)
localNodeDescriptors - Local node descriptorsprefixDescriptor - Prefix Descriptorspublic static BgpPrefixLSIdentifier parsePrefixIdendifier(org.jboss.netty.buffer.ChannelBuffer cb, byte protocolId) throws BgpParseException
cb - ChannelBufferprotocolId - protocol IDBgpParseException - while parsing Prefix Identifierpublic static NodeDescriptors parseLocalNodeDescriptors(org.jboss.netty.buffer.ChannelBuffer cb, byte protocolId) throws BgpParseException
cb - ChannelBufferprotocolId - protocol identifierBgpParseException - while parsing local node descriptorspublic static java.util.List<BgpValueType> parsePrefixDescriptors(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing list of prefix descriptorspublic NodeDescriptors getLocalNodeDescriptors()
public java.util.List<BgpValueType> getPrefixdescriptor()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable<java.lang.Object>