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
-
Method Summary
Modifier and TypeMethodDescriptiongetClazz()
returns class of MvpnChoice handled by serializer.final NlriType
getType()
Returns NlriType handled by parser.protected abstract io.netty.buffer.ByteBuf
serializeBody
(T mvpn) final io.netty.buffer.ByteBuf
serializeMvpn
(T mvpn) Serialize mvpn.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.protocol.bgp.mvpn.spi.nlri.MvpnParser
parseMvpn
-
Constructor Details
-
AbstractMvpnNlri
-
-
Method Details
-
getClazz
Description copied from interface:MvpnSerializer
returns class of MvpnChoice handled by serializer.- Specified by:
getClazz
in interfaceMvpnSerializer<T extends MvpnChoice>
- Returns:
- MvpnChoice Class
-
getType
Description copied from interface:MvpnParser
Returns NlriType handled by parser.- Specified by:
getType
in interfaceMvpnParser<T extends MvpnChoice>
- Returns:
- NlriType
-
serializeMvpn
Description copied from interface:MvpnSerializer
Serialize mvpn.- Specified by:
serializeMvpn
in interfaceMvpnSerializer<T extends MvpnChoice>
- Parameters:
mvpn
- mvpn- Returns:
- Encode mvpn to output buffer
-
serializeBody
-