Teach NETCONF about YANG 1.1 actions in cluster topology
[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.DOMActionService;
12 import org.opendaylight.mdsal.dom.api.DOMDataBroker;
13 import org.opendaylight.mdsal.dom.api.DOMRpcService;
14 import org.opendaylight.yangtools.yang.model.repo.api.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 List<SourceIdentifier> allSourceIdentifiers;
22     private final DOMRpcService deviceRpc;
23     private final DOMActionService deviceAction;
24
25     public CreateInitialMasterActorData(final DOMDataBroker deviceDataBroker,
26                                         final List<SourceIdentifier> allSourceIdentifiers,
27                                         final DOMRpcService deviceRpc, final DOMActionService deviceAction) {
28         this.deviceDataBroker = deviceDataBroker;
29         this.allSourceIdentifiers = allSourceIdentifiers;
30         this.deviceRpc = deviceRpc;
31         this.deviceAction = deviceAction;
32     }
33
34     public DOMDataBroker getDeviceDataBroker() {
35         return deviceDataBroker;
36     }
37
38     public List<SourceIdentifier> getSourceIndentifiers() {
39         return allSourceIdentifiers;
40     }
41
42     public DOMRpcService getDeviceRpc() {
43         return deviceRpc;
44     }
45
46     public DOMActionService getDeviceAction() {
47         return deviceAction;
48     }
49 }