blob: 34a91ea84bca1efb18ad515de3d035022082bf7b [file] [log] [blame]
Thomas Vachuskaa8f4e7d2015-01-08 17:31:55 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuskaa8f4e7d2015-01-08 17:31:55 -08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net.driver;
17
18/**
19 * Abstraction of handler behaviour used to set-up and tear-down driver
20 * connection with a device.
21 */
22public interface DriverConnect extends HandlerBehaviour {
23
24 /**
25 * Connects to the device.
26 *
27 * @param credentials optional login credentials in string form
28 */
29 void connect(String... credentials);
30
31 /**
32 * Disconnects from the device.
33 */
34 void disconnect();
35
36}