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.DOMActionService;
11 import org.opendaylight.mdsal.dom.api.DOMNotification;
12 import org.opendaylight.mdsal.dom.api.DOMRpcService;
13 import org.opendaylight.netconf.sal.connect.netconf.NetconfDeviceSchema;
14 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfSessionPreferences;
16 public interface RemoteDeviceHandler extends AutoCloseable {
18 * When device connected, init new mount point with specific schema context and DOM services.
20 * @param deviceSchema - {@link NetconfDeviceSchema} of connected device
21 * @param sessionPreferences - session of device
22 * @param deviceRpc - {@link DOMRpcService} of device
24 default void onDeviceConnected(final NetconfDeviceSchema deviceSchema,
25 final NetconfSessionPreferences sessionPreferences, final DOMRpcService deviceRpc) {
30 * When device connected, init new mount point with specific schema context and DOM services.
32 * @param deviceSchema - {@link NetconfDeviceSchema} of connected device
33 * @param sessionPreferences - session of device
34 * @param deviceRpc - {@link DOMRpcService} of device
35 * @param deviceAction - {@link DOMActionService} of device
37 default void onDeviceConnected(final NetconfDeviceSchema deviceSchema,
38 final NetconfSessionPreferences sessionPreferences,
39 final DOMRpcService deviceRpc, final DOMActionService deviceAction) {
43 // FIXME: document this node
44 void onDeviceDisconnected();
46 // FIXME: document this node
47 void onDeviceFailed(Throwable throwable);
49 // FIXME: document this node
50 void onNotification(DOMNotification domNotification);