use of org.opendaylight.protocol.pcep.impl.PCEPSessionImpl in project bgpcep by opendaylight.
the class PCCMockCommon method createPCCSession.
Future<PCEPSession> createPCCSession(final BigInteger dbVersion) {
final PCCDispatcherImpl pccDispatcher = new PCCDispatcherImpl(this.messageRegistry);
final PCEPSessionNegotiatorFactory<PCEPSessionImpl> snf = getSessionNegotiatorFactory();
final PCCTunnelManager tunnelManager = new PCCTunnelManagerImpl(3, this.localAddress.getAddress(), 0, -1, new HashedWheelTimer(), Optional.absent());
return pccDispatcher.createClient(this.remoteAddress, -1, () -> {
this.pccSessionListener = new PCCSessionListener(1, tunnelManager, false);
return this.pccSessionListener;
}, snf, KeyMapping.getKeyMapping(), this.localAddress, dbVersion);
}
Aggregations