public abstract class AbstractNetconfSessionNegotiator<P extends org.opendaylight.netconf.api.NetconfSessionPreferences,S extends AbstractNetconfSession<S,L>,L extends org.opendaylight.netconf.api.NetconfSessionListener<S>>
extends org.opendaylight.protocol.framework.AbstractSessionNegotiator<org.opendaylight.netconf.api.messages.NetconfHelloMessage,S>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractNetconfSessionNegotiator.State
Possible states for Finite State Machine.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_OF_EXCEPTION_HANDLER |
protected P |
sessionPreferences |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNetconfSessionNegotiator(P sessionPreferences,
io.netty.util.concurrent.Promise<S> promise,
io.netty.channel.Channel channel,
io.netty.util.Timer timer,
L sessionListener,
long connectionTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract S |
getSession(L sessionListener,
io.netty.channel.Channel channel,
org.opendaylight.netconf.api.messages.NetconfHelloMessage message) |
protected S |
getSessionForHelloMessage(org.opendaylight.netconf.api.messages.NetconfHelloMessage netconfMessage) |
P |
getSessionPreferences() |
protected void |
replaceHelloMessageInboundHandler(S session)
Remove special inbound handler for hello message.
|
protected void |
startNegotiation() |
channelActive, channelRead, exceptionCaught, handleMessage, negotiationFailed, negotiationSuccessful, sendMessagechannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String NAME_OF_EXCEPTION_HANDLER
protected final P extends org.opendaylight.netconf.api.NetconfSessionPreferences sessionPreferences
protected final void startNegotiation()
startNegotiation in class org.opendaylight.protocol.framework.AbstractSessionNegotiator<org.opendaylight.netconf.api.messages.NetconfHelloMessage,S extends AbstractNetconfSession<S,L>>public P getSessionPreferences()
protected final S getSessionForHelloMessage(org.opendaylight.netconf.api.messages.NetconfHelloMessage netconfMessage) throws org.opendaylight.netconf.api.NetconfDocumentedException
org.opendaylight.netconf.api.NetconfDocumentedExceptionprotected final void replaceHelloMessageInboundHandler(S session)
Inbound hello message handler should be kept until negotiation is successful It caches any non-hello messages while negotiation is still in progress
Copyright © 2017 OpenDaylight. All rights reserved.