Class AbstractPCEPSessionNegotiatorFactory
java.lang.Object
org.opendaylight.protocol.pcep.impl.AbstractPCEPSessionNegotiatorFactory
- All Implemented Interfaces:
PCEPSessionNegotiatorFactory
- Direct Known Subclasses:
DefaultPCEPSessionNegotiatorFactory
public abstract class AbstractPCEPSessionNegotiatorFactory
extends Object
implements PCEPSessionNegotiatorFactory
SessionNegotiator which takes care of making sure sessions between PCEP peers are kept unique. This needs to be
further subclassed to provide either a client or server factory.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractPCEPSessionNegotiator
createNegotiator
(io.netty.util.concurrent.Promise<PCEPSession> promise, io.netty.channel.Channel channel, org.opendaylight.yangtools.yang.common.Uint8 sessionId) Create a new negotiator.final SessionNegotiator
getSessionNegotiator
(io.netty.channel.Channel channel, io.netty.util.concurrent.Promise<PCEPSession> promise) Creates PCEPSessionNegotiator instance for income attributes.
-
Constructor Details
-
AbstractPCEPSessionNegotiatorFactory
public AbstractPCEPSessionNegotiatorFactory()
-
-
Method Details
-
createNegotiator
protected abstract AbstractPCEPSessionNegotiator createNegotiator(io.netty.util.concurrent.Promise<PCEPSession> promise, io.netty.channel.Channel channel, org.opendaylight.yangtools.yang.common.Uint8 sessionId) Create a new negotiator. This method needs to be implemented by subclasses to actually provide a negotiator.- Parameters:
promise
- Session promise to be completed by the negotiatorchannel
- Associated channelsessionId
- Session ID assigned to the resulting session- Returns:
- a PCEP session negotiator
-
getSessionNegotiator
public final SessionNegotiator getSessionNegotiator(io.netty.channel.Channel channel, io.netty.util.concurrent.Promise<PCEPSession> promise) Description copied from interface:PCEPSessionNegotiatorFactory
Creates PCEPSessionNegotiator instance for income attributes.- Specified by:
getSessionNegotiator
in interfacePCEPSessionNegotiatorFactory
- Parameters:
channel
- session channelpromise
- session promise- Returns:
- PCEPSessionNegotiator instance
-