public class BgpLinkLSIdentifier
extends java.lang.Object
implements java.lang.Comparable<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
static short |
IPV4_INTERFACE_ADDRESS_TYPE |
static short |
IPV4_NEIGHBOR_ADDRESS_TYPE |
static short |
IPV6_INTERFACE_ADDRESS_TYPE |
static short |
IPV6_NEIGHBOR_ADDRESS_TYPE |
| Constructor and Description |
|---|
BgpLinkLSIdentifier()
Initialize fields.
|
BgpLinkLSIdentifier(NodeDescriptors localNodeDescriptors,
NodeDescriptors remoteNodeDescriptors,
java.util.LinkedList<BgpValueType> linkDescriptor)
Constructors to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.util.List<BgpValueType> |
linkDescriptors()
Returns link descriptors.
|
NodeDescriptors |
localNodeDescriptors()
Returns local node descriptors.
|
static java.util.LinkedList<BgpValueType> |
parseLinkDescriptors(org.jboss.netty.buffer.ChannelBuffer cb)
Parses link descriptors.
|
static BgpLinkLSIdentifier |
parseLinkIdendifier(org.jboss.netty.buffer.ChannelBuffer cb,
byte protocolId)
Reads channel buffer and parses link identifier.
|
static NodeDescriptors |
parseNodeDescriptors(org.jboss.netty.buffer.ChannelBuffer cb,
short desType,
byte protocolId)
Parses Local/Remote node descriptors.
|
NodeDescriptors |
remoteNodeDescriptors()
Returns remote node descriptors.
|
java.lang.String |
toString() |
public static final short IPV4_INTERFACE_ADDRESS_TYPE
public static final short IPV4_NEIGHBOR_ADDRESS_TYPE
public static final short IPV6_INTERFACE_ADDRESS_TYPE
public static final short IPV6_NEIGHBOR_ADDRESS_TYPE
public BgpLinkLSIdentifier()
public BgpLinkLSIdentifier(NodeDescriptors localNodeDescriptors, NodeDescriptors remoteNodeDescriptors, java.util.LinkedList<BgpValueType> linkDescriptor)
localNodeDescriptors - local node descriptorsremoteNodeDescriptors - remote node descriptorslinkDescriptor - link descriptorspublic static BgpLinkLSIdentifier parseLinkIdendifier(org.jboss.netty.buffer.ChannelBuffer cb, byte protocolId) throws BgpParseException
cb - ChannelBufferprotocolId - in linkstate nlriBgpParseException - while parsing link identifierpublic static NodeDescriptors parseNodeDescriptors(org.jboss.netty.buffer.ChannelBuffer cb, short desType, byte protocolId) throws BgpParseException
cb - ChannelBufferdesType - descriptor typeprotocolId - protocol identifierBgpParseException - while parsing Local/Remote node descriptorspublic static java.util.LinkedList<BgpValueType> parseLinkDescriptors(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing link descriptorspublic NodeDescriptors localNodeDescriptors()
public NodeDescriptors remoteNodeDescriptors()
public java.util.List<BgpValueType> linkDescriptors()
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>