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