public final class LinkstateAttributeParser extends Object implements AttributeParser, AttributeSerializer
Constructor and Description |
---|
LinkstateAttributeParser(boolean isIanaAssignedType,
RSVPTeObjectRegistry rsvpTeObjectRegistry) |
Modifier and Type | Method and Description |
---|---|
int |
getType() |
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder)
Parses attribute from ByteBuf buffer.
|
void |
serializeAttribute(org.opendaylight.yangtools.yang.binding.DataObject attribute,
io.netty.buffer.ByteBuf byteAggregator)
Serialize linkstate attributes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseAttribute
public LinkstateAttributeParser(boolean isIanaAssignedType, RSVPTeObjectRegistry rsvpTeObjectRegistry)
public int getType()
public void parseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder) throws BGPParsingException
AttributeParser
parseAttribute
in interface AttributeParser
buffer
- Encoded attribute body in ByteBuf.builder
- Path attributes builder. Guaranteed to contain all valid attributes whose type is numerically
lower than this attribute's type.BGPParsingException
public void serializeAttribute(org.opendaylight.yangtools.yang.binding.DataObject attribute, io.netty.buffer.ByteBuf byteAggregator)
serializeAttribute
in interface AttributeSerializer
attribute
- DataObject representing LinkstatePathAttributebyteAggregator
- ByteBuf where all serialized data are aggregatedCopyright © 2018 OpenDaylight. All rights reserved.