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 protectedAbstractMvpnNlri(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.NlriTypegetType()Returns NlriType handled by parser.protected abstract io.netty.buffer.ByteBufserializeBody(T mvpn)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, 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:MvpnSerializerreturns class of MvpnChoice handled by serializer.- Specified by:
getClazzin interfaceMvpnSerializer<T extends MvpnChoice>- Returns:
- MvpnChoice Class
-
getType
public final NlriType getType()
Description copied from interface:MvpnParserReturns NlriType handled by parser.- Specified by:
getTypein interfaceMvpnParser<T extends MvpnChoice>- Returns:
- NlriType
-
serializeMvpn
public final io.netty.buffer.ByteBuf serializeMvpn(T mvpn)
Description copied from interface:MvpnSerializerSerialize mvpn.- Specified by:
serializeMvpnin interfaceMvpnSerializer<T extends MvpnChoice>- Parameters:
mvpn- mvpn- Returns:
- Encode mvpn to output buffer
-
serializeBody
protected abstract io.netty.buffer.ByteBuf serializeBody(T mvpn)
-
-