Class AbstractMvpnNlri<T extends MvpnChoice>
java.lang.Object
org.opendaylight.protocol.bgp.mvpn.impl.nlri.AbstractMvpnNlri<T>
- All Implemented Interfaces:
MvpnParser<T>,MvpnSerializer<T>
- Direct Known Subclasses:
InterASIPmsiADHandler,IntraAsIPmsiADHandler,LeafADHandler,SharedTreeJoinHandler,SourceActiveADHandler,SourceTreeJoinHandler,SPmsiADHandler
public abstract class AbstractMvpnNlri<T extends MvpnChoice>
extends Object
implements MvpnSerializer<T>, MvpnParser<T>
Abstract Mvpn Nlri.
- Author:
- Claudio D. Gasparini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClazz()returns class of MvpnChoice handled by serializer.final NlriTypegetType()Returns NlriType handled by parser.protected abstract io.netty.buffer.ByteBufserializeBody(T mvpn) final io.netty.buffer.ByteBufserializeMvpn(T mvpn) Serialize mvpn.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.protocol.bgp.mvpn.spi.nlri.MvpnParser
parseMvpn
-
Constructor Details
-
AbstractMvpnNlri
-
-
Method Details
-
getClazz
Description copied from interface:MvpnSerializerreturns class of MvpnChoice handled by serializer.- Specified by:
getClazzin interfaceMvpnSerializer<T extends MvpnChoice>- Returns:
- MvpnChoice Class
-
getType
Description copied from interface:MvpnParserReturns NlriType handled by parser.- Specified by:
getTypein interfaceMvpnParser<T extends MvpnChoice>- Returns:
- NlriType
-
serializeMvpn
Description copied from interface:MvpnSerializerSerialize mvpn.- Specified by:
serializeMvpnin interfaceMvpnSerializer<T extends MvpnChoice>- Parameters:
mvpn- mvpn- Returns:
- Encode mvpn to output buffer
-
serializeBody
-