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 SummaryConstructors Constructor Description TcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup, boolean isEpollEnabled)Constructor.
 - 
Method SummaryAll 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- 
shutdownpublic com.google.common.util.concurrent.ListenableFuture<Boolean> shutdown() - Specified by:
- shutdownin interface- ShutdownProvider
 
 - 
getIsOnlineFuturepublic com.google.common.util.concurrent.ListenableFuture<Boolean> getIsOnlineFuture() - Specified by:
- getIsOnlineFuturein interface- OnlineProvider
 
 - 
setThreadConfigpublic void setThreadConfig(ThreadConfiguration threadConfig) Description copied from interface:ServerFacadeSets thread configuration.- Specified by:
- setThreadConfigin interface- ServerFacade
- Parameters:
- threadConfig- desired thread configuration
 
 - 
initiateConnectionpublic void initiateConnection(String host, int port) Description copied from interface:ConnectionInitializerInitiates connection towards device.- Specified by:
- initiateConnectionin interface- ConnectionInitializer
- Parameters:
- host- - host IP
- port- - port number
 
 - 
setChannelInitializerpublic void setChannelInitializer(TcpChannelInitializer channelInitializer) 
 
- 
 
-