Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 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 | */ |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 16 | |
Yoonseon Han | feb95f1 | 2016-08-24 16:37:46 -0700 | [diff] [blame] | 17 | package org.onosproject.net.flowobjective; |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 18 | |
Saurav Das | b5c236e | 2016-06-07 10:08:06 -0700 | [diff] [blame] | 19 | import com.google.common.collect.ImmutableList; |
Yoonseon Han | feb95f1 | 2016-08-24 16:37:46 -0700 | [diff] [blame] | 20 | import org.onosproject.net.DeviceId; |
| 21 | |
| 22 | import java.util.List; |
Saurav Das | b5c236e | 2016-06-07 10:08:06 -0700 | [diff] [blame] | 23 | |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 24 | /** |
| 25 | * Testing version of implementation on FlowObjectiveService. |
| 26 | */ |
Yoonseon Han | feb95f1 | 2016-08-24 16:37:46 -0700 | [diff] [blame] | 27 | public class FlowObjectiveServiceAdapter implements FlowObjectiveService { |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 28 | |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 29 | private ForwardingObjective forwardingObjective; |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 30 | @Override |
| 31 | public void filter(DeviceId deviceId, FilteringObjective filteringObjective) { |
| 32 | |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | public void forward(DeviceId deviceId, ForwardingObjective forwardingObjective) { |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 37 | this.forwardingObjective = forwardingObjective; |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 38 | } |
| 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 Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 54 | |
| 55 | public ForwardingObjective forwardingObjective() { |
| 56 | return forwardingObjective; |
| 57 | } |
Saurav Das | 2443119 | 2016-03-07 19:13:00 -0800 | [diff] [blame] | 58 | |
| 59 | @Override |
| 60 | public List<String> getNextMappings() { |
Saurav Das | b5c236e | 2016-06-07 10:08:06 -0700 | [diff] [blame] | 61 | return ImmutableList.of(); |
| 62 | } |
| 63 | |
| 64 | @Override |
| 65 | public List<String> getPendingNexts() { |
| 66 | return ImmutableList.of(); |
Saurav Das | 2443119 | 2016-03-07 19:13:00 -0800 | [diff] [blame] | 67 | } |
Mahesh Poojary Huawei | 4f7600b | 2015-12-04 02:31:55 +0530 | [diff] [blame] | 68 | } |