Eliminate SchemaResourcesDTO
[netconf.git] / plugins / netconf-client-mdsal / src / main / java / org / opendaylight / netconf / client / mdsal / 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.client.mdsal.api;
9
10 import org.opendaylight.mdsal.dom.api.DOMNotification;
11 import org.opendaylight.netconf.client.mdsal.NetconfDeviceSchema;
12
13 public interface RemoteDeviceHandler extends AutoCloseable {
14     /**
15      * When device connected, init new mount point with specific schema context and DOM services.
16      *
17      * @param deviceSchema {@link NetconfDeviceSchema} of connected device
18      * @param sessionPreferences session of device
19      * @param services {@link RemoteDeviceServices} available
20      */
21     void onDeviceConnected(NetconfDeviceSchema deviceSchema, NetconfSessionPreferences sessionPreferences,
22             RemoteDeviceServices services);
23
24     // FIXME: document this node
25     void onDeviceDisconnected();
26
27     // FIXME: document this node
28     void onDeviceFailed(Throwable throwable);
29
30     // FIXME: document this node
31     void onNotification(DOMNotification domNotification);
32
33     @Override
34     void close();
35 }