2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.netconf.topology.singleton.messages;
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;
18 * Master sends this message to the own actor to set necessary parameters.
20 public class CreateInitialMasterActorData implements Serializable {
21 private static final long serialVersionUID = 1L;
23 private final DOMDataBroker deviceDataBroker;
24 private final List<SourceIdentifier> allSourceIdentifiers;
25 private final DOMRpcService deviceRpc;
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;
35 public DOMDataBroker getDeviceDataBroker() {
36 return deviceDataBroker;
39 public List<SourceIdentifier> getSourceIndentifiers() {
40 return allSourceIdentifiers;
43 public DOMRpcService getDeviceRpc() {