slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015-present 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 | */ |
| 16 | |
| 17 | package org.onosproject.xran; |
| 18 | |
| 19 | import com.fasterxml.jackson.databind.JsonNode; |
| 20 | import com.fasterxml.jackson.databind.node.ObjectNode; |
| 21 | import org.onosproject.store.Store; |
| 22 | import org.onosproject.xran.codecs.api.ECGI; |
| 23 | import org.onosproject.xran.codecs.api.MMEUES1APID; |
| 24 | import org.onosproject.xran.controller.XranController; |
| 25 | import org.onosproject.xran.entities.RnibCell; |
| 26 | import org.onosproject.xran.entities.RnibLink; |
| 27 | import org.onosproject.xran.entities.RnibSlice; |
| 28 | import org.onosproject.xran.entities.RnibUe; |
| 29 | import org.onosproject.xran.identifiers.LinkId; |
| 30 | |
| 31 | import java.util.List; |
| 32 | |
| 33 | /** |
| 34 | * Created by dimitris on 7/22/17. |
| 35 | */ |
| 36 | public interface XranStore extends Store { |
| 37 | |
| 38 | // LINKS STORE |
| 39 | |
| 40 | List<RnibLink> getLinks(); |
| 41 | |
| 42 | List<RnibLink> getLinksByECGI(ECGI ecgi); |
| 43 | |
| 44 | List<RnibLink> getLinksByCellId(String eciHex); |
| 45 | |
| 46 | List<RnibLink> getLinksByUeId(long euId); |
| 47 | |
| 48 | RnibLink getLinkBetweenCellIdUeId(String cellId, long euId); |
| 49 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 50 | RnibLink getLink(ECGI ecgi, MMEUES1APID mme); |
| 51 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 52 | void modifyLinkRrmConf(RnibLink link, JsonNode rrmConf); |
| 53 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 54 | void storeLink(RnibLink link); |
| 55 | |
| 56 | boolean removeLink(LinkId link); |
| 57 | |
| 58 | // NODES |
| 59 | |
| 60 | List<Object> getNodes(); |
| 61 | |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 62 | List<Object> getCellNodes(); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 63 | |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 64 | List<Object> getUeNodes(); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 65 | |
| 66 | Object getByNodeId(String nodeId); |
| 67 | |
| 68 | // CELL |
| 69 | |
| 70 | RnibCell getCell(String eci); |
| 71 | |
| 72 | RnibCell getCell(ECGI cellId); |
| 73 | |
slowr | 73b4eae | 2017-08-17 16:09:09 -0700 | [diff] [blame^] | 74 | void modifyCellRrmConf(RnibCell cell, JsonNode rrmConf) throws Exception; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 75 | |
| 76 | void storeCell(RnibCell cell); |
| 77 | |
| 78 | boolean removeCell(ECGI ecgi); |
| 79 | |
| 80 | // SLICE |
| 81 | |
| 82 | RnibSlice getSlice(long sliceId); |
| 83 | |
| 84 | boolean createSlice(ObjectNode attributes); |
| 85 | |
| 86 | boolean removeCell(long sliceId); |
| 87 | |
| 88 | // CONTROLLER |
| 89 | |
| 90 | XranController getController(); |
| 91 | |
| 92 | void setController(XranController controller); |
| 93 | |
| 94 | // UE |
| 95 | |
| 96 | RnibUe getUe(long euId); |
| 97 | |
| 98 | RnibUe getUe(MMEUES1APID mme); |
| 99 | |
| 100 | void storeUe(RnibUe ue); |
| 101 | |
| 102 | boolean removeUe(MMEUES1APID mme); |
| 103 | } |