2 * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.bgpcep.pcep.topology.provider.config;
10 import static com.google.common.base.Preconditions.checkNotNull;
12 import java.net.InetSocketAddress;
13 import org.opendaylight.bgpcep.programming.spi.InstructionScheduler;
14 import org.opendaylight.protocol.concepts.KeyMapping;
15 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
17 public final class PCEPTopologyConfigDependencies {
18 private final InetSocketAddress address;
19 private final KeyMapping keys;
20 private final InstructionScheduler scheduler;
21 private final TopologyId topologyId;
22 private final short rpcTimeout;
24 PCEPTopologyConfigDependencies(final InetSocketAddress address, final KeyMapping keys,
25 final InstructionScheduler scheduler, final TopologyId topologyId,
26 final short rpcTimeout) {
27 this.address = checkNotNull(address);
28 this.keys = checkNotNull(keys);
29 this.scheduler = checkNotNull(scheduler);
30 this.topologyId = checkNotNull(topologyId);
31 this.rpcTimeout = rpcTimeout;
34 public TopologyId getTopologyId() {
35 return this.topologyId;
38 public InstructionScheduler getSchedulerDependency() {
39 return this.scheduler;
42 public short getRpcTimeout() {
43 return this.rpcTimeout;
46 public InetSocketAddress getAddress() {
50 public KeyMapping getKeys() {