public class UscPluginTcp extends UscPlugin
CHANNEL, CLIENT_CHANNEL, DIRECT_CHANNEL, LOCAL_SERVER_CHANNEL, ROUTE_IDENTIFIER, SESSION
Constructor and Description |
---|
UscPluginTcp()
Constructs a new UscPluginTcp
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected io.netty.channel.Channel |
connectToAgent(UscDevice device) |
protected io.netty.channel.Channel |
connectToDeviceDirectly(UscDevice device) |
protected UscChannel.ChannelType |
getChannelType() |
protected io.netty.channel.ChannelInboundHandler |
getFrameDecoder() |
protected io.netty.channel.ChannelOutboundHandler |
getFrameEncoder() |
static io.netty.channel.ChannelHandler |
getSecureClientHandler(io.netty.channel.Channel ch)
Returns the security handler for client-side use.
|
static io.netty.channel.ChannelHandler |
getSecureServerHandler(io.netty.channel.Channel ch)
Returns the security handler for server-side use.
|
addCallHomeConnection, closeAgentInternalConnection, connect, connect, getCloseFuture, getConnectionManager, getDemultiplexer, getDmpx, getMultiplexer, initAgentPipeline, initDirectPipeline, isChannelAvailable, retrieveChannelImpl, sendEvent
protected io.netty.channel.ChannelOutboundHandler getFrameEncoder()
getFrameEncoder
in class UscPlugin
protected io.netty.channel.ChannelInboundHandler getFrameDecoder()
getFrameDecoder
in class UscPlugin
public void close()
close
in interface AutoCloseable
close
in class UscPlugin
protected io.netty.channel.Channel connectToAgent(UscDevice device) throws Exception
connectToAgent
in class UscPlugin
Exception
protected io.netty.channel.Channel connectToDeviceDirectly(UscDevice device) throws Exception
connectToDeviceDirectly
in class UscPlugin
Exception
protected UscChannel.ChannelType getChannelType()
getChannelType
in class UscPlugin
public static io.netty.channel.ChannelHandler getSecureServerHandler(io.netty.channel.Channel ch) throws SSLException
ch
- The physical channel that the traffic will be sent through.SSLException
public static io.netty.channel.ChannelHandler getSecureClientHandler(io.netty.channel.Channel ch) throws SSLException
ch
- The physical channel that the traffic will be sent through.SSLException
Copyright © 2019 OpenDaylight. All rights reserved.