blob: c198a9472d5dabf4d742662e095cce62cba2b3d7 [file] [log] [blame]
Hyunsun Moon7ad92202016-04-20 10:36:02 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
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.xosclient.api;
17
18/**
19 * Provides interactions with XOS.
20 */
21public interface XosClientService {
22
23 /**
24 * Returns XOS API access information of the client.
25 *
26 * @return xos access
27 */
28 XosAccess access();
29
30 /**
Hyunsun Moon4c396632016-05-13 04:17:53 -070031 * Returns XOS client with access.
Hyunsun Moon7ad92202016-04-20 10:36:02 -070032 *
Hyunsun Moon03d28512016-05-09 13:19:45 -070033 * @param xosAccess xos access information
Hyunsun Moon4c396632016-05-13 04:17:53 -070034 * @return xos client; null if access fails authentication
Hyunsun Moon7ad92202016-04-20 10:36:02 -070035 */
Hyunsun Moon4c396632016-05-13 04:17:53 -070036 XosClientService getClient(XosAccess xosAccess);
Hyunsun Moon7ad92202016-04-20 10:36:02 -070037
38 /**
Hyunsun Moon4c396632016-05-13 04:17:53 -070039 * Returns CORD VTN service and service dependency API.
Hyunsun Moon7ad92202016-04-20 10:36:02 -070040 *
41 * @return cord vtn service api
42 */
Hyunsun Moon4c396632016-05-13 04:17:53 -070043 VtnServiceApi vtnService();
44
45 /**
46 * Returns CORD VTN port API.
47 *
48 * @return cord vtn port api
49 */
50 VtnPortApi vtnPort();
Hyunsun Moon7ad92202016-04-20 10:36:02 -070051
52 /*
53 * adds more XOS service APIs below.
54 */
55}