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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract AbstractPCEPSessionNegotiatorcreateNegotiator(io.netty.util.concurrent.Promise<PCEPSession> promise, io.netty.channel.Channel channel, org.opendaylight.yangtools.yang.common.Uint8 sessionId) Create a new negotiator.final SessionNegotiatorgetSessionNegotiator(io.netty.channel.Channel channel, io.netty.util.concurrent.Promise<PCEPSession> promise) Creates PCEPSessionNegotiator instance for income attributes.
- 
Constructor Details- 
AbstractPCEPSessionNegotiatorFactorypublic AbstractPCEPSessionNegotiatorFactory()
 
- 
- 
Method Details- 
createNegotiatorprotected 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 negotiator
- channel- Associated channel
- sessionId- Session ID assigned to the resulting session
- Returns:
- a PCEP session negotiator
 
- 
getSessionNegotiatorpublic final SessionNegotiator getSessionNegotiator(io.netty.channel.Channel channel, io.netty.util.concurrent.Promise<PCEPSession> promise) Description copied from interface:PCEPSessionNegotiatorFactoryCreates PCEPSessionNegotiator instance for income attributes.- Specified by:
- getSessionNegotiatorin interface- PCEPSessionNegotiatorFactory
- Parameters:
- channel- session channel
- promise- session promise
- Returns:
- PCEPSessionNegotiator instance
 
 
-