af173644ced2bb595ad9b7103e06d30afb843910
[bgpcep.git] / bgp / parser-api / src / main / java / org / opendaylight / protocol / bgp / parser / BGPSession.java
1 /*
2  * Copyright (c) 2013 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 package org.opendaylight.protocol.bgp.parser;
9
10 import java.util.Set;
11
12 import org.opendaylight.protocol.bgp.concepts.BGPTableType;
13 import org.opendaylight.protocol.framework.ProtocolSession;
14
15 /**
16  * BGP Session represents the finite state machine in BGP, including timers and its purpose is to create a BGP
17  * connection between BGP speakers. Session is automatically started, when TCP connection is created, but can be stopped
18  * manually via close method of the Closeable interface.
19  * 
20  * If the session is up, it has to redirect messages to/from user. Handles also malformed messages and unknown requests.
21  */
22 public interface BGPSession extends ProtocolSession<BGPMessage> {
23
24         public Set<BGPTableType> getAdvertisedTableTypes();
25 }