public class BgpPrefixLSIdentifier extends Object implements Comparable<Object>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static int |
TYPE_AND_LEN |
| Constructor and Description |
|---|
BgpPrefixLSIdentifier()
Resets parameters.
|
BgpPrefixLSIdentifier(NodeDescriptors localNodeDescriptors,
List<BgpValueType> prefixDescriptor)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object obj) |
NodeDescriptors |
getLocalNodeDescriptors()
Returns local node descriptors.
|
List<BgpValueType> |
getPrefixdescriptor()
Returns Prefix descriptors.
|
int |
hashCode() |
static NodeDescriptors |
parseLocalNodeDescriptors(org.jboss.netty.buffer.ChannelBuffer cb,
byte protocolId)
Parse local node descriptors.
|
static 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.
|
String |
toString() |
protected static final org.slf4j.Logger log
public static final int TYPE_AND_LEN
public BgpPrefixLSIdentifier()
public BgpPrefixLSIdentifier(NodeDescriptors localNodeDescriptors, 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 List<BgpValueType> parsePrefixDescriptors(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing list of prefix descriptorspublic NodeDescriptors getLocalNodeDescriptors()
public List<BgpValueType> getPrefixdescriptor()
public int compareTo(Object o)
compareTo in interface Comparable<Object>Copyright © 2016. All rights reserved.