Fix findbugs violations in netconf
[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.util.List;
12 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
13 import org.opendaylight.controller.md.sal.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
24     public CreateInitialMasterActorData(final DOMDataBroker deviceDataBroker,
25                                         final List<SourceIdentifier> allSourceIdentifiers,
26                                         final DOMRpcService deviceRpc) {
27         this.deviceDataBroker = deviceDataBroker;
28         this.allSourceIdentifiers = allSourceIdentifiers;
29         this.deviceRpc = deviceRpc;
30     }
31
32     public DOMDataBroker getDeviceDataBroker() {
33         return deviceDataBroker;
34     }
35
36     public List<SourceIdentifier> getSourceIndentifiers() {
37         return allSourceIdentifiers;
38     }
39
40     public DOMRpcService getDeviceRpc() {
41         return deviceRpc;
42     }
43 }