BGPCEP-706: Fix BGP Flowspec NumbericOphrand
[bgpcep.git] / bmp / bmp-spi / src / main / java / org / opendaylight / protocol / bmp / api / BmpSession.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.protocol.bmp.api;
10
11 import io.netty.channel.ChannelInboundHandler;
12 import java.net.InetAddress;
13
14 /**
15  * BMP Session represents the finite state machine in BMP, its purpose is to create a BMP connection between
16  * Peer and monitoring application. Session is automatically started, when TCP connection is created, but can be stopped
17  * manually via close method of the {@link java.io.Closeable} interface.
18  * If the session is up, it has to redirect messages to/from user. Handles also malformed messages and unknown requests.
19  */
20 public interface BmpSession extends ChannelInboundHandler, AutoCloseable {
21
22     InetAddress getRemoteAddress();
23 }