org.opendaylight.ovsdb.plugin.ChannelConnectionHandler.java Source code

Java tutorial

Introduction

Here is the source code for org.opendaylight.ovsdb.plugin.ChannelConnectionHandler.java

Source

/*
 * Copyright (C) 2013 Red Hat, Inc.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Authors : Madhu Venugopal, Brent Salisbury
 */
package org.opendaylight.ovsdb.plugin;

import org.opendaylight.controller.sal.core.Node;

import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;

public class ChannelConnectionHandler implements ChannelFutureListener {
    Node node;
    ConnectionService connectionService;

    public Node getNode() {
        return node;
    }

    public void setNode(Node node) {
        this.node = node;
    }

    public ConnectionService getConnectionService() {
        return connectionService;
    }

    public void setConnectionService(ConnectionService connectionService) {
        this.connectionService = connectionService;
    }

    @Override
    public void operationComplete(ChannelFuture arg0) throws Exception {
        connectionService.channelClosed(node);
    }
}