Bug 6911 - RPC support in singleton
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / CreateInitialMasterActorData.java
index bab905674254dac1391730393b3480bcb0e609ff..45fd4df0f6e66f2e63ba8633a6ec2c7d78af8fd5 100644 (file)
@@ -11,6 +11,7 @@ package org.opendaylight.netconf.topology.singleton.messages;
 import java.io.Serializable;
 import java.util.List;
 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
+import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 
 /**
@@ -21,11 +22,14 @@ public class CreateInitialMasterActorData implements Serializable {
 
     private final DOMDataBroker deviceDataBroker;
     private final List<SourceIdentifier> allSourceIdentifiers;
+    private final DOMRpcService deviceRpc;
 
     public CreateInitialMasterActorData(final DOMDataBroker deviceDataBroker,
-                                        final List<SourceIdentifier> allSourceIdentifiers) {
+                                        final List<SourceIdentifier> allSourceIdentifiers,
+                                        final DOMRpcService deviceRpc) {
         this.deviceDataBroker = deviceDataBroker;
         this.allSourceIdentifiers = allSourceIdentifiers;
+        this.deviceRpc = deviceRpc;
     }
 
     public DOMDataBroker getDeviceDataBroker() {
@@ -35,4 +39,8 @@ public class CreateInitialMasterActorData implements Serializable {
     public List<SourceIdentifier> getSourceIndentifiers() {
         return allSourceIdentifiers;
     }
+
+    public DOMRpcService getDeviceRpc() {
+        return deviceRpc;
+    }
 }