blob: 48905da7613813bdaaf9701190c2aaaf7e93d89e [file] [log] [blame]
Hyunsun Moon950f6392015-09-10 17:54:10 -07001/*
Brian O'Connor8e57fd52016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Hyunsun Moon950f6392015-09-10 17:54:10 -07003 *
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 */
alshabibb4d31712016-06-01 18:51:03 -070016package org.opencord.cordvtn.api;
Hyunsun Moon950f6392015-09-10 17:54:10 -070017
Hyunsun Moon486ed1b2016-05-13 18:58:35 -070018import org.onosproject.xosclient.api.VtnServiceId;
Hyunsun Moon01556a52016-02-12 12:48:47 -080019
Hyunsun Moon950f6392015-09-10 17:54:10 -070020/**
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070021 * Provides dependency services.
Hyunsun Moon950f6392015-09-10 17:54:10 -070022 */
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070023public interface DependencyService {
Hyunsun Mooncb799442016-01-15 20:03:18 -080024
Hyunsun Moon950f6392015-09-10 17:54:10 -070025 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080026 * Creates dependencies for a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080027 *
Hyunsun Moonba290072015-12-16 20:53:23 -080028 * @param tServiceId id of the service which has a dependency
29 * @param pServiceId id of the service which provide dependency
Hyunsun Moon5f7ed8a2016-02-10 17:02:37 -080030 * @param isBidirectional true to enable bidirectional connectivity between two services
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080031 */
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070032 void createDependency(VtnServiceId tServiceId, VtnServiceId pServiceId, boolean isBidirectional);
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080033
34 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080035 * Removes all dependencies from a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080036 *
Hyunsun Moonba290072015-12-16 20:53:23 -080037 * @param tServiceId id of the service which has a dependency
38 * @param pServiceId id of the service which provide dependency
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080039 */
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070040 void removeDependency(VtnServiceId tServiceId, VtnServiceId pServiceId);
Hyunsun Moon950f6392015-09-10 17:54:10 -070041}