blob: 20ea14d1722567d2b9697d3a495f0a78c495fd56 [file] [log] [blame]
Carmelo Cascone87b9b392017-10-02 18:33:20 +02001/*
2 * Copyright 2017-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 */
16
Carmelo Cascone39c28ca2017-11-15 13:03:57 -080017package org.onosproject.net.pi.service;
Carmelo Cascone87b9b392017-10-02 18:33:20 +020018
19import com.google.common.annotations.Beta;
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -080020
Carmelo Cascone87b9b392017-10-02 18:33:20 +020021/**
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -080022 * A service to translate protocol-dependent (PD) entities to
23 * protocol-independent (PI) ones.
Carmelo Cascone87b9b392017-10-02 18:33:20 +020024 */
25@Beta
26public interface PiTranslationService {
27
28 /**
Carmelo Cascone326ad2d2017-11-28 18:09:13 -080029 * Returns a flow rule translator.
Carmelo Cascone87b9b392017-10-02 18:33:20 +020030 *
Carmelo Cascone326ad2d2017-11-28 18:09:13 -080031 * @return flow rule translator
Carmelo Cascone87b9b392017-10-02 18:33:20 +020032 */
Carmelo Cascone326ad2d2017-11-28 18:09:13 -080033 PiFlowRuleTranslator flowRuleTranslator();
Carmelo Cascone87b9b392017-10-02 18:33:20 +020034
35 /**
Carmelo Cascone326ad2d2017-11-28 18:09:13 -080036 * Returns a group translator.
Carmelo Cascone87b9b392017-10-02 18:33:20 +020037 *
Carmelo Cascone326ad2d2017-11-28 18:09:13 -080038 * @return group translator
Carmelo Cascone87b9b392017-10-02 18:33:20 +020039 */
Carmelo Cascone326ad2d2017-11-28 18:09:13 -080040 PiGroupTranslator groupTranslator();
Frank Wangd7e3b4b2017-09-24 13:37:54 +090041
42 /**
43 * Returns a meter translator.
44 *
45 * @return meter translator
46 */
47 PiMeterTranslator meterTranslator();
Carmelo Cascone58136812018-07-19 03:40:16 +020048
49 /**
50 * Returns a group translator for packet replication engine (PRE)
51 * multicast groups.
52 *
53 * @return multicast group translator
54 */
55 PiMulticastGroupTranslator multicastGroupTranslator();
Carmelo Cascone87b9b392017-10-02 18:33:20 +020056}