Integrate netconf-mapping-api into netconf-server
[netconf.git] / protocol / netconf-api / src / main / java / org / opendaylight / netconf / api / monitoring / SessionListener.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.netconf.api.monitoring;
10
11 /**
12  * Created by mmarsale on 13.2.2015.
13  */
14 public interface SessionListener {
15
16     /**
17      * Callback used to notify about netconf session start.
18      *
19      * @param session started session
20      */
21     void onSessionUp(NetconfManagementSession session);
22
23     /**
24      * Callback used to notify about netconf session end.
25      *
26      * @param session ended session
27      */
28     void onSessionDown(NetconfManagementSession session);
29
30     /**
31      * Callback used to notify about activity in netconf session, like
32      * rpc or notification.
33      *
34      * @param event session event, contains session and type of event
35      */
36     void onSessionEvent(SessionEvent event);
37 }