Class AbstractMessageRegistry

    • Constructor Detail

      • AbstractMessageRegistry

        public AbstractMessageRegistry()
    • Method Detail

      • parseBody

        protected abstract org.opendaylight.yangtools.yang.binding.Notification parseBody​(int type,
                                                                                          io.netty.buffer.ByteBuf body,
                                                                                          int messageLength,
                                                                                          PeerSpecificParserConstraint constraint)
                                                                                   throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException
        Throws:
        org.opendaylight.protocol.bgp.parser.BGPDocumentedException
      • serializeMessageImpl

        protected abstract void serializeMessageImpl​(org.opendaylight.yangtools.yang.binding.Notification message,
                                                     io.netty.buffer.ByteBuf buffer)
      • parseMessage

        public org.opendaylight.yangtools.yang.binding.Notification parseMessage​(io.netty.buffer.ByteBuf buffer,
                                                                                 PeerSpecificParserConstraint constraint)
                                                                          throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
                                                                                 org.opendaylight.protocol.bgp.parser.BGPParsingException
        Description copied from interface: MessageRegistry
        Decode input buffer to BGP Message.
        Specified by:
        parseMessage in interface MessageRegistry
        Parameters:
        buffer - Input buffer with encoded message.
        constraint - Peer specific constraint.
        Returns:
        Parsed BGP message.
        Throws:
        org.opendaylight.protocol.bgp.parser.BGPDocumentedException
        org.opendaylight.protocol.bgp.parser.BGPParsingException
      • serializeMessage

        public final void serializeMessage​(org.opendaylight.yangtools.yang.binding.Notification message,
                                           io.netty.buffer.ByteBuf buffer)
        Description copied from interface: MessageRegistry
        Encode input BGP Message to output buffer.
        Specified by:
        serializeMessage in interface MessageRegistry
        Parameters:
        message - Input BGP Message to be serialized.
        buffer - Output buffer where message is to be written.