blob: 11f3667aa5e5065f7024c8516f0c3a03d3e1a5e6 [file] [log] [blame]
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +05301/*
2 * Copyright 2015 Open Networking Laboratory
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.sfc.util;
17
18import org.onosproject.net.DeviceId;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053019import org.onosproject.net.flowobjective.FilteringObjective;
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053020import org.onosproject.net.flowobjective.FlowObjectiveService;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053021import org.onosproject.net.flowobjective.ForwardingObjective;
22import org.onosproject.net.flowobjective.NextObjective;
23
24/**
25 * Testing version of implementation on FlowObjectiveService.
26 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053027public class FlowObjectiveAdapter implements FlowObjectiveService {
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053028
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053029 private ForwardingObjective forwardingObjective;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053030 @Override
31 public void filter(DeviceId deviceId, FilteringObjective filteringObjective) {
32
33 }
34
35 @Override
36 public void forward(DeviceId deviceId, ForwardingObjective forwardingObjective) {
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053037 this.forwardingObjective = forwardingObjective;
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053038 }
39
40 @Override
41 public void next(DeviceId deviceId, NextObjective nextObjective) {
42
43 }
44
45 @Override
46 public int allocateNextId() {
47 return 0;
48 }
49
50 @Override
51 public void initPolicy(String policy) {
52
53 }
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053054
55 public ForwardingObjective forwardingObjective() {
56 return forwardingObjective;
57 }
Mahesh Poojary Huawei4f7600b2015-12-04 02:31:55 +053058}