Class DefaultPCEPSessionNegotiatorFactory
java.lang.Object
org.opendaylight.protocol.pcep.impl.AbstractPCEPSessionNegotiatorFactory
org.opendaylight.protocol.pcep.impl.DefaultPCEPSessionNegotiatorFactory
- All Implemented Interfaces:
PCEPSessionNegotiatorFactory<PCEPSessionImpl>
-
Constructor Summary
ConstructorDescriptionDefaultPCEPSessionNegotiatorFactory
(PCEPSessionProposalFactory spf, int maxUnknownMessages) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractPCEPSessionNegotiator
createNegotiator
(PCEPSessionNegotiatorFactoryDependencies sessionNegotiatorDependencies, io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel, short sessionId) Create a new negotiator.Returns a PCEPSessionProposalFactory.Methods inherited from class org.opendaylight.protocol.pcep.impl.AbstractPCEPSessionNegotiatorFactory
getSessionNegotiator, getSessionRegistry
-
Constructor Details
-
DefaultPCEPSessionNegotiatorFactory
-
DefaultPCEPSessionNegotiatorFactory
public DefaultPCEPSessionNegotiatorFactory(PCEPSessionProposalFactory spf, PcepDispatcherConfig config)
-
-
Method Details
-
createNegotiator
protected AbstractPCEPSessionNegotiator createNegotiator(PCEPSessionNegotiatorFactoryDependencies sessionNegotiatorDependencies, io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel, short sessionId) Description copied from class:AbstractPCEPSessionNegotiatorFactory
Create a new negotiator. This method needs to be implemented by subclasses to actually provide a negotiator.- Specified by:
createNegotiator
in classAbstractPCEPSessionNegotiatorFactory
- Parameters:
sessionNegotiatorDependencies
- PCEP Session Negotiator dependenciespromise
- Session promise to be completed by the negotiatorchannel
- Associated channelsessionId
- Session ID assigned to the resulting session- Returns:
- a PCEP session negotiator
-
getPCEPSessionProposalFactory
Description copied from interface:PCEPSessionNegotiatorFactory
Returns a PCEPSessionProposalFactory.- Returns:
- session factory
-