public abstract class AbstractNetconfSession<S extends org.opendaylight.netconf.api.NetconfSession,L extends org.opendaylight.netconf.api.NetconfSessionListener<S>>
extends org.opendaylight.protocol.framework.AbstractProtocolSession<org.opendaylight.netconf.api.NetconfMessage>
implements org.opendaylight.netconf.api.NetconfSession, org.opendaylight.netconf.api.NetconfExiSession
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNetconfSession(L sessionListener,
io.netty.channel.Channel channel,
long sessionId) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addExiHandlers(io.netty.handler.codec.ByteToMessageDecoder decoder,
io.netty.handler.codec.MessageToByteEncoder<org.opendaylight.netconf.api.NetconfMessage> encoder)
Add a set encoder/decoder tuple into the channel pipeline as appropriate.
|
void |
close() |
protected void |
endOfInput() |
long |
getSessionId() |
protected void |
handleMessage(org.opendaylight.netconf.api.NetconfMessage netconfMessage) |
boolean |
isUp() |
protected void |
replaceChannelHandler(String handlerName,
io.netty.channel.ChannelHandler handler) |
protected void |
replaceMessageDecoder(io.netty.channel.ChannelHandler handler) |
protected void |
replaceMessageEncoder(io.netty.channel.ChannelHandler handler) |
protected void |
replaceMessageEncoderAfterNextMessage(io.netty.channel.ChannelHandler handler) |
io.netty.channel.ChannelFuture |
sendMessage(org.opendaylight.netconf.api.NetconfMessage netconfMessage) |
protected void |
sessionUp() |
void |
startExiCommunication(org.opendaylight.netconf.api.NetconfMessage startExiMessage) |
protected abstract S |
thisInstance() |
String |
toString() |
channelInactive, channelRead0, handlerAddedacceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected AbstractNetconfSession(L sessionListener, io.netty.channel.Channel channel, long sessionId)
protected abstract S thisInstance()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.opendaylight.protocol.framework.ProtocolSession<org.opendaylight.netconf.api.NetconfMessage>protected void handleMessage(org.opendaylight.netconf.api.NetconfMessage netconfMessage)
handleMessage in class org.opendaylight.protocol.framework.AbstractProtocolSession<org.opendaylight.netconf.api.NetconfMessage>public io.netty.channel.ChannelFuture sendMessage(org.opendaylight.netconf.api.NetconfMessage netconfMessage)
sendMessage in interface org.opendaylight.netconf.api.NetconfSessionprotected void endOfInput()
endOfInput in class org.opendaylight.protocol.framework.AbstractProtocolSession<org.opendaylight.netconf.api.NetconfMessage>protected void sessionUp()
sessionUp in class org.opendaylight.protocol.framework.AbstractProtocolSession<org.opendaylight.netconf.api.NetconfMessage>protected final void replaceMessageDecoder(io.netty.channel.ChannelHandler handler)
protected final void replaceMessageEncoder(io.netty.channel.ChannelHandler handler)
protected final void replaceMessageEncoderAfterNextMessage(io.netty.channel.ChannelHandler handler)
protected final void replaceChannelHandler(String handlerName, io.netty.channel.ChannelHandler handler)
public final void startExiCommunication(org.opendaylight.netconf.api.NetconfMessage startExiMessage)
startExiCommunication in interface org.opendaylight.netconf.api.NetconfExiSessionprotected abstract void addExiHandlers(io.netty.handler.codec.ByteToMessageDecoder decoder,
io.netty.handler.codec.MessageToByteEncoder<org.opendaylight.netconf.api.NetconfMessage> encoder)
decoder - EXI decoderencoder - EXI encoderpublic final boolean isUp()
public final long getSessionId()
Copyright © 2017 OpenDaylight. All rights reserved.