2 * Copyright (C) 2013 Red Hat, Inc.
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 * Authors : Madhu Venugopal, Brent Salisbury
10 package org.opendaylight.ovsdb.plugin;
12 import org.opendaylight.controller.sal.core.Node;
14 import io.netty.channel.ChannelFuture;
15 import io.netty.channel.ChannelFutureListener;
17 public class ChannelConnectionHandler implements ChannelFutureListener {
19 ConnectionService connectionService;
20 public Node getNode() {
23 public void setNode(Node node) {
26 public ConnectionService getConnectionService() {
27 return connectionService;
29 public void setConnectionService(ConnectionService connectionService) {
30 this.connectionService = connectionService;
33 public void operationComplete(ChannelFuture arg0) throws Exception {
34 connectionService.channelClosed(node);