2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.netconf.sal.connect.api;
10 import org.opendaylight.mdsal.dom.api.DOMNotification;
11 import org.opendaylight.netconf.sal.connect.netconf.NetconfDeviceSchema;
12 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfSessionPreferences;
14 public interface RemoteDeviceHandler extends AutoCloseable {
16 * When device connected, init new mount point with specific schema context and DOM services.
18 * @param deviceSchema {@link NetconfDeviceSchema} of connected device
19 * @param sessionPreferences session of device
20 * @param services {@link RemoteDeviceServices} available
22 void onDeviceConnected(NetconfDeviceSchema deviceSchema, NetconfSessionPreferences sessionPreferences,
23 RemoteDeviceServices services);
25 // FIXME: document this node
26 void onDeviceDisconnected();
28 // FIXME: document this node
29 void onDeviceFailed(Throwable throwable);
31 // FIXME: document this node
32 void onNotification(DOMNotification domNotification);