Search in sources :

Example 1 with PCEPSessionImpl

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);
}
Also used : PCCDispatcherImpl(org.opendaylight.protocol.pcep.pcc.mock.protocol.PCCDispatcherImpl) PCCSessionListener(org.opendaylight.protocol.pcep.pcc.mock.protocol.PCCSessionListener) PCCTunnelManager(org.opendaylight.protocol.pcep.pcc.mock.api.PCCTunnelManager) PCEPSessionImpl(org.opendaylight.protocol.pcep.impl.PCEPSessionImpl) HashedWheelTimer(io.netty.util.HashedWheelTimer)

Aggregations

HashedWheelTimer (io.netty.util.HashedWheelTimer)1 PCEPSessionImpl (org.opendaylight.protocol.pcep.impl.PCEPSessionImpl)1 PCCTunnelManager (org.opendaylight.protocol.pcep.pcc.mock.api.PCCTunnelManager)1 PCCDispatcherImpl (org.opendaylight.protocol.pcep.pcc.mock.protocol.PCCDispatcherImpl)1 PCCSessionListener (org.opendaylight.protocol.pcep.pcc.mock.protocol.PCCSessionListener)1