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 Details

    • AbstractMvpnNlri

      protected AbstractMvpnNlri(Class<T> choice, NlriType type)
  • Method Details

    • getClazz

      public final Class<T> getClazz()
      Description copied from interface: MvpnSerializer
      returns class of MvpnChoice handled by serializer.
      Specified by:
      getClazz in interface MvpnSerializer<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 interface MvpnParser<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 interface MvpnSerializer<T extends MvpnChoice>
      Parameters:
      mvpn - mvpn
      Returns:
      Encode mvpn to output buffer
    • serializeBody

      protected abstract io.netty.buffer.ByteBuf serializeBody(T mvpn)