Fix findbugs violations in netconf
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / CreateInitialMasterActorData.java
index bab905674254dac1391730393b3480bcb0e609ff..b9ce540fd6df321902418a256ffe4d7373e8cd78 100644 (file)
@@ -8,24 +8,25 @@
 
 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;
 
 /**
  * Master sends this message to the own actor to set necessary parameters.
  */
-public class CreateInitialMasterActorData implements Serializable {
-    private static final long serialVersionUID = 1L;
-
+public class CreateInitialMasterActorData {
     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 +36,8 @@ public class CreateInitialMasterActorData implements Serializable {
     public List<SourceIdentifier> getSourceIndentifiers() {
         return allSourceIdentifiers;
     }
+
+    public DOMRpcService getDeviceRpc() {
+        return deviceRpc;
+    }
 }