public final class DefaultPCEPSessionNegotiator extends AbstractPCEPSessionNegotiator
AbstractPCEPSessionNegotiator.StateFAIL_TIMER_VALUEchannel, promise| Constructor and Description |
|---|
DefaultPCEPSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise,
io.netty.channel.Channel channel,
PCEPSessionListener listener,
short sessionId,
int maxUnknownMessages,
Open localPrefs) |
DefaultPCEPSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise,
io.netty.channel.Channel channel,
PCEPSessionListener listener,
short sessionId,
int maxUnknownMessages,
Open localPrefs,
Tls tlsConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
PCEPSessionImpl |
createSession(io.netty.channel.Channel channel,
Open localPrefs,
Open remotePrefs)
Create the protocol session.
|
protected Open |
getCounterProposal(Open open)
Given a peer-provided session parameters proposal which we found unacceptable, provide a counter-proposal.
|
protected Open |
getInitialProposal()
Get the initial session parameters proposal.
|
protected Open |
getRevisedProposal(Open suggestion)
Get the revised session parameters proposal based on the feedback the peer has provided to us.
|
protected boolean |
isProposalAcceptable(Open open)
Check whether a peer-provided session parameters proposal is acceptable.
|
handleMessage, negotiationFailed, setTlsConfiguration, startNegotiationchannelActive, channelRead, exceptionCaught, negotiationSuccessful, sendMessagechannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DefaultPCEPSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel, PCEPSessionListener listener, short sessionId, int maxUnknownMessages, Open localPrefs, Tls tlsConfiguration)
public DefaultPCEPSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel, PCEPSessionListener listener, short sessionId, int maxUnknownMessages, Open localPrefs)
protected Open getInitialProposal()
AbstractPCEPSessionNegotiatorgetInitialProposal in class AbstractPCEPSessionNegotiatorpublic PCEPSessionImpl createSession(io.netty.channel.Channel channel, Open localPrefs, Open remotePrefs)
AbstractPCEPSessionNegotiatorcreateSession in class AbstractPCEPSessionNegotiatorchannel - Underlying channel.localPrefs - Session preferences proposed by us and accepted by the peer.remotePrefs - Session preferences proposed by the peer and accepted by us.protected boolean isProposalAcceptable(Open open)
AbstractPCEPSessionNegotiatorisProposalAcceptable in class AbstractPCEPSessionNegotiatoropen - peer-proposed session parametersprotected Open getCounterProposal(Open open)
AbstractPCEPSessionNegotiatorgetCounterProposal in class AbstractPCEPSessionNegotiatoropen - unacceptable peer proposalprotected Open getRevisedProposal(Open suggestion)
AbstractPCEPSessionNegotiatorgetRevisedProposal in class AbstractPCEPSessionNegotiatorsuggestion - Peer-provided suggested session parametersCopyright © 2019 OpenDaylight. All rights reserved.