699c39945bd2788eb3151af022b3d940d736bba2
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / api / RemoteDeviceHandler.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netconf.sal.connect.api;
9
10 import org.opendaylight.controller.md.sal.dom.api.DOMNotification;
11 import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
12 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
13
14 public interface RemoteDeviceHandler<PREF> extends AutoCloseable {
15
16     void onDeviceConnected(SchemaContext remoteSchemaContext,
17                            PREF netconfSessionPreferences, DOMRpcService deviceRpc);
18
19     void onDeviceDisconnected();
20
21     void onDeviceFailed(Throwable throwable);
22
23     void onNotification(DOMNotification domNotification);
24
25     void close();
26 }