public abstract class AbstractPCEPSessionNegotiator extends AbstractSessionNegotiator
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPCEPSessionNegotiator.State
PCEP session negotiation state transitions are described in RFC5440.
|
Modifier and Type | Field and Description |
---|---|
static int |
FAIL_TIMER_VALUE
Unified KeepWait and OpenWait timer expiration, in seconds.
|
channel, promise
Modifier | Constructor and Description |
---|---|
protected |
AbstractPCEPSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise,
io.netty.channel.Channel channel) |
Modifier and Type | Method and Description |
---|---|
protected abstract PCEPSessionImpl |
createSession(io.netty.channel.Channel channel,
Open localPrefs,
Open remotePrefs)
Create the protocol session.
|
protected abstract Open |
getCounterProposal(Open proposal)
Given a peer-provided session parameters proposal which we found unacceptable, provide a counter-proposal.
|
protected abstract Open |
getInitialProposal()
Get the initial session parameters proposal.
|
protected abstract Open |
getRevisedProposal(Open suggestion)
Get the revised session parameters proposal based on the feedback the peer has provided to us.
|
protected void |
handleMessage(Message msg) |
protected abstract boolean |
isProposalAcceptable(Open proposal)
Check whether a peer-provided session parameters proposal is acceptable.
|
protected void |
negotiationFailed(Throwable cause) |
void |
setTlsConfiguration(Tls tlsConfiguration) |
protected void |
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 static final int FAIL_TIMER_VALUE
protected AbstractPCEPSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel)
protected abstract Open getInitialProposal()
protected abstract Open getRevisedProposal(Open suggestion)
suggestion
- Peer-provided suggested session parametersprotected abstract boolean isProposalAcceptable(Open proposal)
proposal
- peer-proposed session parametersprotected abstract Open getCounterProposal(Open proposal)
proposal
- unacceptable peer proposalprotected abstract PCEPSessionImpl createSession(io.netty.channel.Channel channel, Open localPrefs, Open remotePrefs)
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 final void startNegotiation()
startNegotiation
in class AbstractSessionNegotiator
protected final void handleMessage(Message msg)
handleMessage
in class AbstractSessionNegotiator
public void setTlsConfiguration(Tls tlsConfiguration)
protected void negotiationFailed(Throwable cause)
negotiationFailed
in class AbstractSessionNegotiator
Copyright © 2018 OpenDaylight. All rights reserved.