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 Modifier Constructor Description protected
AbstractMvpnNlri(Class<T> choice, NlriType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Class<T>
getClazz()
returns class of MvpnChoice handled by serializer.NlriType
getType()
Returns NlriType handled by parser.protected abstract io.netty.buffer.ByteBuf
serializeBody(T mvpn)
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
-
-
-
-
Method Detail
-
getClazz
public final Class<T> 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
public final NlriType getType()
Description copied from interface:MvpnParser
Returns NlriType handled by parser.- Specified by:
getType
in interfaceMvpnParser<T extends MvpnChoice>
- Returns:
- NlriType
-
serializeMvpn
public final io.netty.buffer.ByteBuf serializeMvpn(T mvpn)
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
protected abstract io.netty.buffer.ByteBuf serializeBody(T mvpn)
-
-