BGPCEP-704: Update Topology Deployer
[bgpcep.git] / pcep / topology / topology-provider / src / main / java / org / opendaylight / bgpcep / pcep / topology / provider / config / PCEPTopologyConfigDependencies.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.bgpcep.pcep.topology.provider.config;
9
10 import static com.google.common.base.Preconditions.checkNotNull;
11
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;
16
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;
23
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;
32     }
33
34     public TopologyId getTopologyId() {
35         return this.topologyId;
36     }
37
38     public InstructionScheduler getSchedulerDependency() {
39         return this.scheduler;
40     }
41
42     public short getRpcTimeout() {
43         return this.rpcTimeout;
44     }
45
46     public InetSocketAddress getAddress() {
47         return this.address;
48     }
49
50     public KeyMapping getKeys() {
51         return this.keys;
52     }
53 }