public class TcpConnectionInitializer extends Object implements ServerFacade, ConnectionInitializer
| Constructor and Description |
|---|
TcpConnectionInitializer(io.netty.channel.nio.NioEventLoopGroup workerGroup)
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(org.opendaylight.ocpjava.protocol.api.connection.ThreadConfiguration threadConfig)
Sets thread configuration
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
shutdown() |
public TcpConnectionInitializer(io.netty.channel.nio.NioEventLoopGroup workerGroup)
workerGroup - - shared worker grouppublic com.google.common.util.concurrent.ListenableFuture<Boolean> shutdown()
shutdown in interface ShutdownProviderpublic com.google.common.util.concurrent.ListenableFuture<Boolean> getIsOnlineFuture()
getIsOnlineFuture in interface OnlineProviderpublic void setThreadConfig(org.opendaylight.ocpjava.protocol.api.connection.ThreadConfiguration threadConfig)
ServerFacadesetThreadConfig in interface ServerFacadethreadConfig - desired thread configurationpublic void initiateConnection(String host, int port)
ConnectionInitializerinitiateConnection in interface ConnectionInitializerhost - - host IPport - - port numberpublic void setChannelInitializer(TcpChannelInitializer channelInitializer)
channelInitializer - Copyright © 2016 OpenDaylight. All Rights Reserved.