blob: 7fed73ac605580caad4e08b6fcba99022e99bbc1 [file] [log] [blame]
Boyoung Jeong9e8faec2018-06-17 21:19:23 +09001/*
2 * Copyright 2018-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.openstacktelemetry.api;
17
18import java.util.Set;
19
20/**
21 * Admin service API for making a flow rule.
22 */
23public interface StatsFlowRuleAdminService {
24
25 /**
Jian Li0bbbb1c2018-06-22 22:01:17 +090026 * Starts this service.
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090027 */
28 void start();
29
30 /**
Jian Li0bbbb1c2018-06-22 22:01:17 +090031 * Stops this service.
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090032 */
33 void stop();
34
35 /**
Jian Li0bbbb1c2018-06-22 22:01:17 +090036 * Creates a stat flow rule.
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090037 *
Jian Li0bbbb1c2018-06-22 22:01:17 +090038 * @param statFlowRule stat flow rule for a VM
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090039 */
Jian Li0bbbb1c2018-06-22 22:01:17 +090040 void createStatFlowRule(StatsFlowRule statFlowRule);
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090041
42 /**
Jian Li0bbbb1c2018-06-22 22:01:17 +090043 * Gets a set of flow infos.
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090044 *
Jian Li0bbbb1c2018-06-22 22:01:17 +090045 * @return a set of flow infos
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090046 */
Jian Li0bbbb1c2018-06-22 22:01:17 +090047 Set<FlowInfo> getFlowInfo();
48
49 /**
50 * Deletes stat flow rule.
51 *
52 * @param statFlowRule stat flow rule for a VM
53 */
54 void deleteStatFlowRule(StatsFlowRule statFlowRule);
Boyoung Jeong9e8faec2018-06-17 21:19:23 +090055}