public final class DefaultPCEPSessionNegotiator extends AbstractPCEPSessionNegotiator
AbstractPCEPSessionNegotiator.State
FAIL_TIMER_VALUE
channel, 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, startNegotiation
channelActive, channelRead, exceptionCaught, negotiationSuccessful, sendMessage
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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()
AbstractPCEPSessionNegotiator
getInitialProposal
in class AbstractPCEPSessionNegotiator
public PCEPSessionImpl createSession(io.netty.channel.Channel channel, Open localPrefs, Open remotePrefs)
AbstractPCEPSessionNegotiator
createSession
in class AbstractPCEPSessionNegotiator
channel
- 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)
AbstractPCEPSessionNegotiator
isProposalAcceptable
in class AbstractPCEPSessionNegotiator
open
- peer-proposed session parametersprotected Open getCounterProposal(Open open)
AbstractPCEPSessionNegotiator
getCounterProposal
in class AbstractPCEPSessionNegotiator
open
- unacceptable peer proposalprotected Open getRevisedProposal(Open suggestion)
AbstractPCEPSessionNegotiator
getRevisedProposal
in class AbstractPCEPSessionNegotiator
suggestion
- Peer-provided suggested session parametersCopyright © 2018 OpenDaylight. All rights reserved.