Class LinkBandwidthEC
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.impl.message.update.extended.communities.LinkBandwidthEC
-
- All Implemented Interfaces:
ExtendedCommunityParser,ExtendedCommunitySerializer
public class LinkBandwidthEC extends Object implements ExtendedCommunityParser, ExtendedCommunitySerializer
-
-
Constructor Summary
Constructors Constructor Description LinkBandwidthEC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSubType()Provides a sub-type of the extended community for which the serializer is registered.intgetType(boolean isTransitive)Provides a type of the extended community for which the serializer is registered.ExtendedCommunityparseExtendedCommunity(io.netty.buffer.ByteBuf buffer)Parses the Extended Community value encoded in the buffer.voidserializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf body)Serializes Extended Community value to the buffer.
-
-
-
Method Detail
-
parseExtendedCommunity
public ExtendedCommunity parseExtendedCommunity(io.netty.buffer.ByteBuf buffer) throws BGPDocumentedException, BGPParsingException
Description copied from interface:ExtendedCommunityParserParses the Extended Community value encoded in the buffer.- Specified by:
parseExtendedCommunityin interfaceExtendedCommunityParser- Parameters:
buffer- ByteBuf- Returns:
- Decoded Extended Community value.
- Throws:
BGPDocumentedExceptionBGPParsingException
-
serializeExtendedCommunity
public void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf body)
Description copied from interface:ExtendedCommunitySerializerSerializes Extended Community value to the buffer.- Specified by:
serializeExtendedCommunityin interfaceExtendedCommunitySerializer- Parameters:
extendedCommunity- ExtendedCommuity to be encoded.body- The output buffer where the extended community is written.
-
getType
public int getType(boolean isTransitive)
Description copied from interface:ExtendedCommunitySerializerProvides a type of the extended community for which the serializer is registered.- Specified by:
getTypein interfaceExtendedCommunitySerializer- Parameters:
isTransitive- Transitivity of the extended community.- Returns:
- A type of the extended community.
-
getSubType
public int getSubType()
Description copied from interface:ExtendedCommunitySerializerProvides a sub-type of the extended community for which the serializer is registered.- Specified by:
getSubTypein interfaceExtendedCommunitySerializer- Returns:
- A sub-type of the extended community.
-
-