Bug 3864: Notify netconf monitoring about changes in session
[netconf.git] / netconf / 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      * @param session started session
19      */
20     void onSessionUp(NetconfManagementSession session);
21
22     /**
23      * Callback used to notify about netconf session end
24      * @param session ended session
25      */
26     void onSessionDown(NetconfManagementSession session);
27
28     /**
29      * Callback used to notify about activity in netconf session, like
30      * rpc or notification
31      * @param event session event, contains session and type of event
32      */
33     void onSessionEvent(SessionEvent event);
34 }