BUG-3095 Add EventTime attribute to DOMNotification from netconf
[controller.git] / opendaylight / md-sal / sal-netconf-connector / src / main / java / org / opendaylight / controller / sal / connect / api / RemoteDeviceHandler.java
index b2845d5533358a059bd7ecc4014ebae5717f0ee6..07c5fcb620464c62621ba93d6ec882e03edcc3e8 100644 (file)
@@ -7,18 +7,20 @@
  */
 package org.opendaylight.controller.sal.connect.api;
 
-import org.opendaylight.controller.sal.core.api.RpcImplementation;
-import org.opendaylight.yangtools.yang.data.api.CompositeNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider;
+import org.opendaylight.controller.md.sal.dom.api.DOMNotification;
+import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
+import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 
 public interface RemoteDeviceHandler<PREF> extends AutoCloseable {
 
-    void onDeviceConnected(SchemaContextProvider remoteSchemaContextProvider,
-                           PREF netconfSessionPreferences, RpcImplementation deviceRpc);
+    void onDeviceConnected(SchemaContext remoteSchemaContext,
+                           PREF netconfSessionPreferences, DOMRpcService deviceRpc);
 
     void onDeviceDisconnected();
 
-    void onNotification(CompositeNode domNotification);
+    void onDeviceFailed(Throwable throwable);
+
+    void onNotification(DOMNotification domNotification);
 
     void close();
 }