Class DefaultPCEPSessionNegotiatorFactory
- java.lang.Object
-
- org.opendaylight.protocol.pcep.impl.AbstractPCEPSessionNegotiatorFactory
-
- org.opendaylight.protocol.pcep.impl.DefaultPCEPSessionNegotiatorFactory
-
- All Implemented Interfaces:
PCEPSessionNegotiatorFactory<PCEPSessionImpl>
public final class DefaultPCEPSessionNegotiatorFactory extends AbstractPCEPSessionNegotiatorFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultPCEPSessionNegotiatorFactory(PCEPSessionProposalFactory spf, int maxUnknownMessages)
DefaultPCEPSessionNegotiatorFactory(PCEPSessionProposalFactory spf, PcepDispatcherConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractPCEPSessionNegotiator
createNegotiator(PCEPSessionNegotiatorFactoryDependencies sessionNegotiatorDependencies, io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel, short sessionId)
Create a new negotiator.PCEPSessionProposalFactory
getPCEPSessionProposalFactory()
Returns a PCEPSessionProposalFactory.-
Methods inherited from class org.opendaylight.protocol.pcep.impl.AbstractPCEPSessionNegotiatorFactory
getSessionNegotiator, getSessionRegistry
-
-
-
-
Constructor Detail
-
DefaultPCEPSessionNegotiatorFactory
public DefaultPCEPSessionNegotiatorFactory(PCEPSessionProposalFactory spf, int maxUnknownMessages)
-
DefaultPCEPSessionNegotiatorFactory
public DefaultPCEPSessionNegotiatorFactory(PCEPSessionProposalFactory spf, PcepDispatcherConfig config)
-
-
Method Detail
-
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
public PCEPSessionProposalFactory getPCEPSessionProposalFactory()
Description copied from interface:PCEPSessionNegotiatorFactory
Returns a PCEPSessionProposalFactory.- Returns:
- session factory
-
-