Class SharedTreeJoinHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.mvpn.impl.nlri.SharedTreeJoinHandler
-
- All Implemented Interfaces:
MvpnParser<SharedTreeJoinCase>
,MvpnSerializer<SharedTreeJoinCase>
public final class SharedTreeJoinHandler extends Object
https://tools.ietf.org/html/rfc6514#section-4.6.- Author:
- Claudio D. Gasparini
-
-
Constructor Summary
Constructors Constructor Description SharedTreeJoinHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends MvpnChoice>
getClazz()
returns class of MvpnChoice handled by serializer.int
getType()
Returns NlriType handled by parser.SharedTreeJoinCase
parseMvpn(io.netty.buffer.ByteBuf buffer)
Decode input buffer to BGP Mvpn.protected io.netty.buffer.ByteBuf
serializeBody(SharedTreeJoinCase mvpn)
io.netty.buffer.ByteBuf
serializeMvpn(T mvpn)
Serialize mvpn.
-
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:MvpnParser
Returns NlriType handled by parser.- Returns:
- NlriType
-
parseMvpn
public SharedTreeJoinCase parseMvpn(io.netty.buffer.ByteBuf buffer)
Description copied from interface:MvpnParser
Decode input buffer to BGP Mvpn.- Parameters:
buffer
- encoded Mvpn body in Bytebuf- Returns:
- Mvpn
-
serializeBody
protected io.netty.buffer.ByteBuf serializeBody(SharedTreeJoinCase mvpn)
-
getClazz
public Class<? extends MvpnChoice> getClazz()
Description copied from interface:MvpnSerializer
returns class of MvpnChoice handled by serializer.- Returns:
- MvpnChoice Class
-
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
-
-