Class BGPRouteRefreshMessageParser
java.lang.Object
org.opendaylight.protocol.bgp.parser.impl.message.BGPRouteRefreshMessageParser
- All Implemented Interfaces:
MessageParser
,MessageSerializer
public final class BGPRouteRefreshMessageParser
extends Object
implements MessageParser, MessageSerializer
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionparseMessageBody
(io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) Parses BGP Route Refresh message to bytes.void
serializeMessage
(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes) Serializes BGP Route Refresh message.
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
Constructor Details
-
BGPRouteRefreshMessageParser
public BGPRouteRefreshMessageParser(AddressFamilyRegistry afiReg, SubsequentAddressFamilyRegistry safiReg)
-
-
Method Details
-
serializeMessage
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes) Serializes BGP Route Refresh message.- Specified by:
serializeMessage
in interfaceMessageSerializer
- Parameters:
message
- to be serializedbytes
- ByteBuf where the message will be serialized
-
parseMessageBody
public RouteRefresh parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException Parses BGP Route Refresh message to bytes.- Specified by:
parseMessageBody
in interfaceMessageParser
- Parameters:
body
- ByteBuf to be parsedmessageLength
- the length of the messageconstraint
- Peer specific constraints, implementations may ignore them.- Returns:
RouteRefresh
which represents BGP notification message- Throws:
BGPDocumentedException
- if parsing goes wrong
-