mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
mohamed rahil | 8ea09d4 | 2016-04-19 20:47:21 +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 | */ |
| 16 | package org.onosproject.isis.controller; |
| 17 | |
| 18 | import java.util.Map; |
| 19 | |
| 20 | /** |
| 21 | * Representation of an ISIS LSP bin which is part of LSP aging process. |
| 22 | */ |
| 23 | public interface IsisLspBin { |
| 24 | |
| 25 | /** |
| 26 | * Returns all the LSPs in the bin. |
| 27 | * |
| 28 | * @return all LSPs in the bin |
| 29 | */ |
| 30 | Map<String, LspWrapper> listOfLsp(); |
| 31 | |
| 32 | /** |
| 33 | * Adds LSP to bin for aging. |
| 34 | * |
| 35 | * @param lspKey key to add the LSP |
| 36 | * @param lspWrapper LSP wrapper instance |
| 37 | */ |
| 38 | void addIsisLsp(String lspKey, LspWrapper lspWrapper); |
| 39 | |
| 40 | /** |
| 41 | * Removes LSP from bin. |
| 42 | * |
| 43 | * @param lspKey LSP key |
| 44 | * @param lspWrapper LSP wrapper instance |
| 45 | */ |
| 46 | void removeIsisLsp(String lspKey, LspWrapper lspWrapper); |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 47 | } |