Class BasePCEPSessionProposalFactory
java.lang.Object
org.opendaylight.protocol.pcep.impl.BasePCEPSessionProposalFactory
- All Implemented Interfaces:
PCEPSessionProposalFactory
public final class BasePCEPSessionProposalFactory
extends Object
implements PCEPSessionProposalFactory
-
Constructor Summary
ConstructorDescriptionBasePCEPSessionProposalFactory
(int deadTimer, int keepAlive, List<PCEPCapability> capabilities) -
Method Summary
Modifier and TypeMethodDescriptionReturns list containing PCEP Capabilities.getSessionProposal
(InetSocketAddress address, int sessionId, PCEPPeerProposal peerProposal) Creates Open with session proposal.
-
Constructor Details
-
BasePCEPSessionProposalFactory
public BasePCEPSessionProposalFactory(int deadTimer, int keepAlive, List<PCEPCapability> capabilities)
-
-
Method Details
-
getSessionProposal
public Open getSessionProposal(InetSocketAddress address, int sessionId, PCEPPeerProposal peerProposal) Description copied from interface:PCEPSessionProposalFactory
Creates Open with session proposal.- Specified by:
getSessionProposal
in interfacePCEPSessionProposalFactory
- Parameters:
address
- serves as constraint, so that factory is able to return different proposals for different addressessessionId
- is used for creation of PCEPOpenObjectpeerProposal
- for including information from peer to our Open message- Returns:
- specific session proposal
-
getCapabilities
Description copied from interface:PCEPSessionProposalFactory
Returns list containing PCEP Capabilities.- Specified by:
getCapabilities
in interfacePCEPSessionProposalFactory
- Returns:
- PCEPCapabilities
-