blob: c0e5e5de35c2796759a14f50b37d832b7caca85d [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 /**
26 * Start this service.
27 */
28 void start();
29
30 /**
31 * Stop this service.
32 */
33 void stop();
34
35 /**
36 * Craete a flow rule.
37 *
38 * @param flowRule Flow rule for a VM
39 */
40 void createFlowRule(StatsFlowRule flowRule);
41
42 /**
43 * Get flow rule list.
44 * @return flow rule list.
45 */
46 Set<FlowInfo> getFlowRule();
47
48 /**
49 * Get flow rule list.
50 * @param flowRule Flow rule for a VM
51 * @return flow rule list.
52 */
53 Set<FlowInfo> getFlowRule(StatsFlowRule flowRule);
54
55 /**
56 * Delete the flow rule.
57 *
58 * @param flowRule Flow rule for Openstack VM
59 */
60 void deleteFlowRule(StatsFlowRule flowRule);
61}