*/
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.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(SchemaContext remoteSchemaContext,
- PREF netconfSessionPreferences, RpcImplementation deviceRpc);
+ PREF netconfSessionPreferences, DOMRpcService deviceRpc);
void onDeviceDisconnected();
- void onNotification(CompositeNode domNotification);
+ void onDeviceFailed(Throwable throwable);
+
+ void onNotification(DOMNotification domNotification);
void close();
}