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
8 package org.opendaylight.netconf.server.api.monitoring;
10 public interface SessionListener {
12 * Callback used to notify about netconf session start.
14 * @param session started session
16 void onSessionUp(NetconfManagementSession session);
19 * Callback used to notify about netconf session end.
21 * @param session ended session
23 void onSessionDown(NetconfManagementSession session);
26 * Callback used to notify about activity in netconf session, like
27 * rpc or notification.
29 * @param event session event, contains session and type of event
31 void onSessionEvent(SessionEvent event);