2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.protocol.bmp.api;
11 import io.netty.channel.ChannelInboundHandler;
12 import java.net.InetAddress;
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.
20 public interface BmpSession extends ChannelInboundHandler, AutoCloseable {
22 InetAddress getRemoteAddress();