blob: a322c4775e5bd11c0f2e3210ea017a00444124df [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;
20
21/**
slowr577f3222017-08-28 10:49:08 -070022 * Xran device agent interface.
slowr13fa5b02017-08-08 16:32:31 -070023 */
24public interface XranDeviceAgent {
25
slowr577f3222017-08-28 10:49:08 -070026 /**
27 * Add connected CELL.
28 *
29 * @param host IP of host trying to connect
30 * @param ctx channel of CELL speaking to
31 * @return true if succeeded
32 */
slowr13fa5b02017-08-08 16:32:31 -070033 boolean addConnectedCell(String host, ChannelHandlerContext ctx);
34
slowr577f3222017-08-28 10:49:08 -070035 /**
36 * Remove disconnected CELL.
37 *
38 * @param host IP of host disconnected
39 * @return true if remove succeeded
40 */
slowr13fa5b02017-08-08 16:32:31 -070041 boolean removeConnectedCell(String host);
42}