Class PimSmTreeParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.mvpn.spi.attributes.tunnel.identifier.AbstractTunnelIdentifier<PimSmTree>
-
- org.opendaylight.protocol.bgp.mvpn.impl.attributes.tunnel.identifier.PimSmTreeParser
-
- All Implemented Interfaces:
TunnelIdentifierParser<PimSmTree>
,TunnelIdentifierSerializer<PimSmTree>
public final class PimSmTreeParser extends AbstractTunnelIdentifier<PimSmTree>
-
-
Constructor Summary
Constructors Constructor Description PimSmTreeParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends TunnelIdentifier>
getClazz()
int
getType()
PimSmTree
parse(io.netty.buffer.ByteBuf buffer)
Parse Tunnel Identifier from buffer.int
serialize(PimSmTree tunnelIdentifier, io.netty.buffer.ByteBuf buffer)
Serialize tunnel identifier.
-
-
-
Method Detail
-
serialize
public int serialize(PimSmTree tunnelIdentifier, io.netty.buffer.ByteBuf buffer)
Description copied from interface:TunnelIdentifierSerializer
Serialize tunnel identifier.- Parameters:
tunnelIdentifier
- Tunnel Identifier bodybuffer
- Encoded Tunnel Identifier in ByteBuf- Returns:
- Tunnel identifier Type
-
getClazz
public Class<? extends TunnelIdentifier> getClazz()
-
parse
public PimSmTree parse(io.netty.buffer.ByteBuf buffer)
Description copied from interface:TunnelIdentifierParser
Parse Tunnel Identifier from buffer.- Parameters:
buffer
- Encoded Tunnel Identifier in ByteBuf.- Returns:
- Parsed Tunnel Identifier body
-
getType
public int getType()
-
-