2 * Copyright (c) 2013 Pantheon Technologies s.r.o. 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.openflowjava.protocol.it.integration;
11 import java.net.InetAddress;
13 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
14 import org.opendaylight.openflowjava.protocol.api.connection.ThreadConfiguration;
15 import org.opendaylight.openflowjava.protocol.api.connection.TlsConfiguration;
18 * @author michal.polkorab
21 public class ConnectionConfigurationImpl implements ConnectionConfiguration {
23 private InetAddress address;
25 private Object transferProtocol;
26 private TlsConfiguration tlsConfig;
27 private long switchIdleTimeout;
28 private ThreadConfiguration threadConfig;
31 * Creates {@link ConnectionConfigurationImpl}
35 * @param switchIdleTimeout
37 public ConnectionConfigurationImpl(InetAddress address, int port, TlsConfiguration tlsConfig, long switchIdleTimeout) {
38 this.address = address;
40 this.tlsConfig = tlsConfig;
41 this.switchIdleTimeout = switchIdleTimeout;
45 public InetAddress getAddress() {
50 public int getPort() {
55 public Object getTransferProtocol() {
56 return transferProtocol;
60 public long getSwitchIdleTimeout() {
61 return switchIdleTimeout;
65 public Object getSslContext() {
66 // TODO Auto-generated method stub
71 public TlsConfiguration getTlsConfiguration() {
76 public ThreadConfiguration getThreadConfiguration() {
81 * @param threadConfig thread model configuration (configures threads used)
83 public void setThreadConfiguration(ThreadConfiguration threadConfig) {
84 this.threadConfig = threadConfig;