blob: a81adb80a0f498783bcb130a6cd87dc076a29fbe [file] [log] [blame]
Jian Lidaa7d6a2021-04-13 17:22:56 +09001/*
2 * Copyright 2021-present Open Networking Foundation
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.kubevirtnetworking.api;
17
18/**
19 * Service for administering the inventory of kubevirt load balancer service.
20 */
21public interface KubevirtLoadBalancerAdminService extends KubevirtLoadBalancerService {
22
23 /**
24 * Create a kubevirt load balancer with the given information.
25 *
26 * @param lb a new load balancer
27 */
28 void createLoadBalancer(KubevirtLoadBalancer lb);
29
30 /**
31 * Updates the kubevirt load balancer with the given information.
32 *
33 * @param lb the updated load balancer
34 */
35 void updateLoadBalancer(KubevirtLoadBalancer lb);
36
37 /**
38 * Removes the load balancer.
39 *
40 * @param name load balancer name
41 */
42 void removeLoadBalancer(String name);
43
44 /**
45 * Removes all load balancers.
46 */
47 void clear();
48}