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.openflowplugin.impl.connection;
10 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter;
11 import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FeaturesReply;
18 public class ConnectionContextImpl implements ConnectionContext {
20 private ConnectionAdapter connectionAdapter;
21 private CONNECTION_STATE connectionState;
22 private FeaturesReply featuresReply;
25 * @param connectionAdapter
27 public ConnectionContextImpl(ConnectionAdapter connectionAdapter) {
28 this.connectionAdapter = connectionAdapter;
32 public ConnectionAdapter getConnectionAdapter() {
33 return connectionAdapter;
37 public CONNECTION_STATE getConnectionState() {
38 return connectionState;
42 public NodeId getNodeId() {
43 // TODO Auto-generated method stub
48 public void setConnectionState(CONNECTION_STATE connectionState) {
49 this.connectionState = connectionState;
53 public FeaturesReply getFeatures() {
58 public void setFeatures(FeaturesReply featuresReply) {
59 this.featuresReply = featuresReply;