Bump upstreams
[netconf.git] / apps / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / CreateInitialMasterActorData.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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.netconf.topology.singleton.messages;
9
10 import java.util.List;
11 import org.opendaylight.mdsal.dom.api.DOMDataBroker;
12 import org.opendaylight.netconf.client.mdsal.api.RemoteDeviceServices;
13 import org.opendaylight.netconf.dom.api.NetconfDataTreeService;
14 import org.opendaylight.yangtools.yang.model.api.source.SourceIdentifier;
15
16 /**
17  * Master sends this message to the own actor to set necessary parameters.
18  */
19 public class CreateInitialMasterActorData {
20     private final DOMDataBroker deviceDataBroker;
21     private final NetconfDataTreeService netconfService;
22     private final List<SourceIdentifier> allSourceIdentifiers;
23     private final RemoteDeviceServices deviceServices;
24
25     public CreateInitialMasterActorData(final DOMDataBroker deviceDataBroker,
26                                         final NetconfDataTreeService netconfService,
27                                         final List<SourceIdentifier> allSourceIdentifiers,
28                                         final RemoteDeviceServices deviceServices) {
29         this.deviceDataBroker = deviceDataBroker;
30         this.netconfService = netconfService;
31         this.allSourceIdentifiers = allSourceIdentifiers;
32         this.deviceServices = deviceServices;
33     }
34
35     public DOMDataBroker getDeviceDataBroker() {
36         return deviceDataBroker;
37     }
38
39     public NetconfDataTreeService getNetconfDataTreeService() {
40         return netconfService;
41     }
42
43     public List<SourceIdentifier> getSourceIndentifiers() {
44         return allSourceIdentifiers;
45     }
46
47     public RemoteDeviceServices getDeviceServices() {
48         return deviceServices;
49     }
50 }