2 * Copyright (c) 2013 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
9 package org.opendaylight.openflowplugin.openflow.md.core;
11 import java.net.InetAddress;
13 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
16 * @deprecated use configSubsystem
19 public abstract class ConnectionConfigurationFactory {
21 /** OF default listening port */
22 private static final int DEFAULT_OF_PORT = 6653;
23 /** OF legacy default listening port */
24 private static final int LEGACY_OF_PORT = 6633;
27 * @return default connection configuration
29 public static ConnectionConfiguration getDefault() {
30 return new ConnectionConfiguration() {
33 public InetAddress getAddress() {
39 public int getPort() {
40 return DEFAULT_OF_PORT;
44 public FEATURE_SUPPORT getTlsSupport() {
45 return FEATURE_SUPPORT.NOT_SUPPORTED;
49 public Object getTransferProtocol() {
55 public long getSwitchIdleTimeout() {
60 public Object getSslContext() {
67 * @return default connection configuration
69 public static ConnectionConfiguration getLegacy() {
70 return new ConnectionConfiguration() {
73 public InetAddress getAddress() {
79 public int getPort() {
80 return LEGACY_OF_PORT;
84 public FEATURE_SUPPORT getTlsSupport() {
85 return FEATURE_SUPPORT.NOT_SUPPORTED;
89 public Object getTransferProtocol() {
95 public long getSwitchIdleTimeout() {
100 public Object getSslContext() {