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
ConstructorsConstructorDescriptionTcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup, boolean isEpollEnabled) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<Boolean>voidinitiateConnection(String host, int port) Initiates connection towards device.voidrun()voidsetChannelInitializer(TcpChannelInitializer channelInitializer) voidsetThreadConfig(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:
shutdownin interfaceShutdownProvider
-
getIsOnlineFuture
- Specified by:
getIsOnlineFuturein 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:ServerFacadeSets thread configuration.- Specified by:
setThreadConfigin interfaceServerFacade- Parameters:
threadConfig- desired thread configuration
-
initiateConnection
Description copied from interface:ConnectionInitializerInitiates connection towards device.- Specified by:
initiateConnectionin interfaceConnectionInitializer- Parameters:
host- - host IPport- - port number
-
setChannelInitializer
-