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,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open localPrefs,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open remotePrefs)
Create the protocol session.
|
protected abstract org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open |
getCounterProposal(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open proposal)
Given a peer-provided session parameters proposal which we found unacceptable, provide a counter-proposal.
|
protected abstract org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open |
getInitialProposal()
Get the initial session parameters proposal.
|
protected abstract org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open |
getRevisedProposal(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open suggestion)
Get the revised session parameters proposal based on the feedback the peer has provided to us.
|
protected void |
handleMessage(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg) |
protected abstract boolean |
isProposalAcceptable(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.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, sendMessagechannelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int FAIL_TIMER_VALUE
protected AbstractPCEPSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel)
protected abstract org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open getInitialProposal()
protected abstract org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open getRevisedProposal(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open suggestion)
suggestion - Peer-provided suggested session parametersprotected abstract boolean isProposalAcceptable(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open proposal)
proposal - peer-proposed session parametersprotected abstract org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open getCounterProposal(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open proposal)
proposal - unacceptable peer proposalprotected abstract PCEPSessionImpl createSession(io.netty.channel.Channel channel, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open localPrefs, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.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 AbstractSessionNegotiatorprotected final void handleMessage(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message msg)
handleMessage in class AbstractSessionNegotiatorpublic void setTlsConfiguration(Tls tlsConfiguration)
protected void negotiationFailed(Throwable cause)
negotiationFailed in class AbstractSessionNegotiatorCopyright © 2018 OpenDaylight. All rights reserved.