69e2dd20bd494660d3b40f3703824f1189e28a05
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / api / RemoteDeviceConnector.java
1 /*
2  * Copyright (c) 2016 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
9 package org.opendaylight.netconf.topology.singleton.api;
10
11 import org.opendaylight.netconf.sal.connect.api.RemoteDeviceHandler;
12 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfSessionPreferences;
13
14 /**
15  * Provides API for connection odl (master) with device.
16  */
17 public interface RemoteDeviceConnector {
18
19     /**
20      * Create device communicator and open device connection.
21      */
22     void startRemoteDeviceConnection(RemoteDeviceHandler<NetconfSessionPreferences> deviceHandler);
23
24     /**
25      * Stop device communicator.
26      */
27     void stopRemoteDeviceConnection();
28 }