Class TcpConnectionInitializer
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.core.TcpConnectionInitializer
-
- All Implemented Interfaces:
Runnable,ConnectionInitializer,OnlineProvider,ServerFacade,ShutdownProvider
public class TcpConnectionInitializer extends Object implements ServerFacade, ConnectionInitializer
Initializes (TCP) connection to device.- Author:
- martin.uhlir
-
-
Constructor Summary
Constructors Constructor Description TcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup, boolean isEpollEnabled)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<Boolean>getIsOnlineFuture()voidinitiateConnection(String host, int port)Initiates connection towards device.voidrun()voidsetChannelInitializer(TcpChannelInitializer channelInitializer)voidsetThreadConfig(ThreadConfiguration threadConfig)Sets thread configuration.com.google.common.util.concurrent.ListenableFuture<Boolean>shutdown()
-
-
-
Method Detail
-
shutdown
public com.google.common.util.concurrent.ListenableFuture<Boolean> shutdown()
- Specified by:
shutdownin interfaceShutdownProvider
-
getIsOnlineFuture
public com.google.common.util.concurrent.ListenableFuture<Boolean> getIsOnlineFuture()
- Specified by:
getIsOnlineFuturein interfaceOnlineProvider
-
setThreadConfig
public void setThreadConfig(ThreadConfiguration threadConfig)
Description copied from interface:ServerFacadeSets thread configuration.- Specified by:
setThreadConfigin interfaceServerFacade- Parameters:
threadConfig- desired thread configuration
-
initiateConnection
public void initiateConnection(String host, int port)
Description copied from interface:ConnectionInitializerInitiates connection towards device.- Specified by:
initiateConnectionin interfaceConnectionInitializer- Parameters:
host- - host IPport- - port number
-
setChannelInitializer
public void setChannelInitializer(TcpChannelInitializer channelInitializer)
-
-