Merge "MD-SAL OVSDB SB - handle update to ovsdb node."
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / OvsdbConnectionListener.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
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  * Authors : Madhu Venugopal
9  */
10
11 package org.opendaylight.ovsdb.lib;
12
13 /**
14  * Applications interested in Passive ovsdb connection events should implement this interface.
15  */
16 public interface OvsdbConnectionListener {
17     /**
18      * Event thrown to the connection listener when a new Passive connection is established.
19      * @param OvsdbClient that represents the connection.
20      */
21     public void connected(OvsdbClient client);
22
23     /**
24      * Event thrown to the connection listener when an existing connection is terminated.
25      * @param OvsdbClient that represents the connection.
26      */
27     public void disconnected(OvsdbClient client);
28 }