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.client.mdsal.api;
10 import org.opendaylight.mdsal.dom.api.DOMNotification;
11 import org.opendaylight.netconf.client.mdsal.NetconfDeviceSchema;
13 public interface RemoteDeviceHandler extends AutoCloseable {
15 * When device connected, init new mount point with specific schema context and DOM services.
17 * @param deviceSchema {@link NetconfDeviceSchema} of connected device
18 * @param sessionPreferences session of device
19 * @param services {@link RemoteDeviceServices} available
21 void onDeviceConnected(NetconfDeviceSchema deviceSchema, NetconfSessionPreferences sessionPreferences,
22 RemoteDeviceServices services);
24 // FIXME: document this node
25 void onDeviceDisconnected();
27 // FIXME: document this node
28 void onDeviceFailed(Throwable throwable);
30 // FIXME: document this node
31 void onNotification(DOMNotification domNotification);