509ecb0e55ab28b1ce2d2af7a0475ae5ea08ed3d
[netconf.git] / netconf / 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.mdsal.dom.api.DOMRpcService;
13 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
14
15 /**
16  * Master sends this message to the own actor to set necessary parameters.
17  */
18 public class CreateInitialMasterActorData {
19     private final DOMDataBroker deviceDataBroker;
20     private final List<SourceIdentifier> allSourceIdentifiers;
21     private final DOMRpcService deviceRpc;
22
23     public CreateInitialMasterActorData(final DOMDataBroker deviceDataBroker,
24                                         final List<SourceIdentifier> allSourceIdentifiers,
25                                         final DOMRpcService deviceRpc) {
26         this.deviceDataBroker = deviceDataBroker;
27         this.allSourceIdentifiers = allSourceIdentifiers;
28         this.deviceRpc = deviceRpc;
29     }
30
31     public DOMDataBroker getDeviceDataBroker() {
32         return deviceDataBroker;
33     }
34
35     public List<SourceIdentifier> getSourceIndentifiers() {
36         return allSourceIdentifiers;
37     }
38
39     public DOMRpcService getDeviceRpc() {
40         return deviceRpc;
41     }
42 }