blob: 9c335da1ce911ce08a492cf1cd61f083bd6ebdf7 [file] [log] [blame]
slowr13fa5b02017-08-08 16:32:31 -07001/*
slowr577f3222017-08-28 10:49:08 -07002 * Copyright 2015-present Open Networking Foundation
slowr13fa5b02017-08-08 16:32:31 -07003 *
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
17package org.onosproject.xran.controller;
18
19import io.netty.channel.ChannelHandlerContext;
20import org.onosproject.xran.entities.RnibCell;
21import org.onosproject.xran.entities.RnibUe;
22
23/**
slowr577f3222017-08-28 10:49:08 -070024 * Xran host agent interface.
slowr13fa5b02017-08-08 16:32:31 -070025 */
26public interface XranHostAgent {
slowr577f3222017-08-28 10:49:08 -070027
28 /**
29 * Add connected host.
30 *
31 * @param ue UE entity
32 * @param cell CELL entity
33 * @param ctx channel of CELL
34 * @return true if succeeded
35 */
slowr13fa5b02017-08-08 16:32:31 -070036 boolean addConnectedHost(RnibUe ue, RnibCell cell, ChannelHandlerContext ctx);
37
slowr577f3222017-08-28 10:49:08 -070038 /**
39 * Remove disconnected host.
40 *
41 * @param ue UE entity
42 * @return true if remove succeeded
43 */
slowr13fa5b02017-08-08 16:32:31 -070044 boolean removeConnectedHost(RnibUe ue);
45}