243f2d93c1d847c84887a0f3b9621236f71163cd
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / ConnectionConfiguration.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.openflowjava.protocol.api.connection;
10
11 import java.net.InetAddress;
12
13 import javax.net.ssl.SSLEngine;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.system.rev130927.SwitchIdleEvent;
15
16 /**
17  * @author mirehak
18  *
19  */
20 public interface ConnectionConfiguration {
21
22     /**
23      * @return address to bind, if null, all available interfaces will be used
24      */
25     InetAddress getAddress();
26     
27     /**
28      * @return port to bind
29      */
30     int getPort();
31     
32     /**
33      * @return transport protocol to use
34      */
35     Object getTransferProtocol();
36     
37     /**
38      * @return TLS configuration object
39      */
40     TlsConfiguration getTlsConfiguration();
41     
42     /**
43      * @return silence time (in milliseconds) - after this time {@link SwitchIdleEvent} message is sent upstream 
44      */
45     long getSwitchIdleTimeout();
46     
47     /**
48      * @return seed for {@link SSLEngine}
49      */
50     Object getSslContext();
51     
52     /**
53      * @return thread numbers for TcpHandler's eventloopGroups
54      */
55     ThreadConfiguration getThreadConfiguration();
56 }