public class TcpConnectionInitializer extends Object implements ServerFacade, ConnectionInitializer
Constructor and Description |
---|
TcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup,
boolean isEpollEnabled)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
getIsOnlineFuture() |
void |
initiateConnection(String host,
int port)
Initiates connection towards device.
|
void |
run() |
void |
setChannelInitializer(TcpChannelInitializer channelInitializer) |
void |
setThreadConfig(ThreadConfiguration threadConfig)
Sets thread configuration.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
shutdown() |
public TcpConnectionInitializer(io.netty.channel.EventLoopGroup workerGroup, boolean isEpollEnabled)
workerGroup
- - shared worker grouppublic com.google.common.util.concurrent.ListenableFuture<Boolean> shutdown()
shutdown
in interface ShutdownProvider
public com.google.common.util.concurrent.ListenableFuture<Boolean> getIsOnlineFuture()
getIsOnlineFuture
in interface OnlineProvider
public void setThreadConfig(ThreadConfiguration threadConfig)
ServerFacade
setThreadConfig
in interface ServerFacade
threadConfig
- desired thread configurationpublic void initiateConnection(String host, int port)
ConnectionInitializer
initiateConnection
in interface ConnectionInitializer
host
- - host IPport
- - port numberpublic void setChannelInitializer(TcpChannelInitializer channelInitializer)
Copyright © 2020 OpenDaylight. All rights reserved.