2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.pcep.pcc.mock.api;
10 import io.netty.util.concurrent.Future;
11 import java.net.InetSocketAddress;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.protocol.concepts.KeyMapping;
14 import org.opendaylight.protocol.pcep.PCEPSession;
15 import org.opendaylight.protocol.pcep.PCEPSessionListenerFactory;
16 import org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory;
17 import org.opendaylight.yangtools.yang.common.Uint64;
19 public interface PCCDispatcher {
21 @NonNull Future<PCEPSession> createClient(@NonNull InetSocketAddress remoteAddress,
22 long reconnectTime, @NonNull PCEPSessionListenerFactory listenerFactory,
23 @NonNull PCEPSessionNegotiatorFactory negotiatorFactory, @NonNull KeyMapping keys,
24 @NonNull InetSocketAddress localAddress, @NonNull Uint64 dbVersion);
26 @NonNull Future<PCEPSession> createClient(@NonNull InetSocketAddress remoteAddress,
27 long reconnectTime, @NonNull PCEPSessionListenerFactory listenerFactory,
28 @NonNull PCEPSessionNegotiatorFactory negotiatorFactory, @NonNull KeyMapping keys,
29 @NonNull InetSocketAddress localAddress);