Add 'features/protocol-framework/' from commit 'cb42405784db97d0ce2c5991d12a89b46d185949'
[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
9 package org.opendaylight.netconf.topology.singleton.messages;
10
11 import java.io.Serializable;
12 import java.util.List;
13 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
14 import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
15 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
16
17 /**
18  * Master sends this message to the own actor to set necessary parameters.
19  */
20 public class CreateInitialMasterActorData implements Serializable {
21     private static final long serialVersionUID = 1L;
22
23     private final DOMDataBroker deviceDataBroker;
24     private final List<SourceIdentifier> allSourceIdentifiers;
25     private final DOMRpcService deviceRpc;
26
27     public CreateInitialMasterActorData(final DOMDataBroker deviceDataBroker,
28                                         final List<SourceIdentifier> allSourceIdentifiers,
29                                         final DOMRpcService deviceRpc) {
30         this.deviceDataBroker = deviceDataBroker;
31         this.allSourceIdentifiers = allSourceIdentifiers;
32         this.deviceRpc = deviceRpc;
33     }
34
35     public DOMDataBroker getDeviceDataBroker() {
36         return deviceDataBroker;
37     }
38
39     public List<SourceIdentifier> getSourceIndentifiers() {
40         return allSourceIdentifiers;
41     }
42
43     public DOMRpcService getDeviceRpc() {
44         return deviceRpc;
45     }
46 }