public final class CommunitiesAttributeParser extends Object implements AttributeParser, AttributeSerializer
Modifier and Type | Field and Description |
---|---|
static int |
TYPE |
Constructor and Description |
---|
CommunitiesAttributeParser(ReferenceCache refCache) |
Modifier and Type | Method and Description |
---|---|
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder)
Parses attribute from ByteBuf buffer.
|
static Community |
parseCommunity(ReferenceCache refCache,
io.netty.buffer.ByteBuf buffer)
Parse known Community, if unknown, a new one will be created.
|
void |
serializeAttribute(org.opendaylight.yangtools.yang.binding.DataObject attribute,
io.netty.buffer.ByteBuf byteAggregator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parseAttribute
public static final int TYPE
public CommunitiesAttributeParser(ReferenceCache refCache)
public void parseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder) throws BGPDocumentedException
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.BGPDocumentedException
public static Community parseCommunity(ReferenceCache refCache, io.netty.buffer.ByteBuf buffer) throws BGPDocumentedException
refCache
- buffer
- byte array to be parsedBGPDocumentedException
public void serializeAttribute(org.opendaylight.yangtools.yang.binding.DataObject attribute, io.netty.buffer.ByteBuf byteAggregator)
serializeAttribute
in interface AttributeSerializer
Copyright © 2018 OpenDaylight. All rights reserved.