Class TcpConnectionInitializer
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.core.TcpConnectionInitializer
- All Implemented Interfaces:
Runnable
,ConnectionInitializer
,OnlineProvider
,ServerFacade
,ShutdownProvider
Initializes (TCP) connection to device.
- Author:
- martin.uhlir
-
Constructor Summary
ConstructorDescriptionTcpConnectionInitializer
(io.netty.channel.EventLoopGroup workerGroup, boolean isEpollEnabled) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<Boolean>
void
initiateConnection
(String host, int port) Initiates connection towards device.void
run()
void
setChannelInitializer
(TcpChannelInitializer channelInitializer) void
setThreadConfig
(ThreadConfiguration threadConfig) Deprecated, for removal: This API element is subject to removal in a future version.com.google.common.util.concurrent.ListenableFuture<Boolean>
shutdown()
-
Constructor Details
-
TcpConnectionInitializer
public TcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup, boolean isEpollEnabled) Constructor.- Parameters:
workerGroup
- - shared worker group
-
-
Method Details
-
run
public void run() -
shutdown
- Specified by:
shutdown
in interfaceShutdownProvider
-
getIsOnlineFuture
- Specified by:
getIsOnlineFuture
in interfaceOnlineProvider
-
setThreadConfig
@Deprecated(since="0.17.2", forRemoval=true) public void setThreadConfig(ThreadConfiguration threadConfig) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ServerFacade
Sets thread configuration.- Specified by:
setThreadConfig
in interfaceServerFacade
- Parameters:
threadConfig
- desired thread configuration
-
initiateConnection
Description copied from interface:ConnectionInitializer
Initiates connection towards device.- Specified by:
initiateConnection
in interfaceConnectionInitializer
- Parameters:
host
- - host IPport
- - port number
-
setChannelInitializer
-