2 * Copyright (c) 2013 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;
10 import io.netty.channel.ChannelFuture;
11 import javax.annotation.Nonnull;
14 * Dispatcher class for creating servers and clients.
16 public interface PCEPDispatcher {
18 * Creates server. Each server needs three factories to pass their instances to client sessions.
20 * @param dispatcherDependencies contains required dependencies for instantiate a PCEP Server
21 * @return instance of PCEPServer
24 ChannelFuture createServer(@Nonnull PCEPDispatcherDependencies dispatcherDependencies);
27 PCEPSessionNegotiatorFactory<?> getPCEPSessionNegotiatorFactory();