blob: e67b10a3ba59d4ff666d67069e88782889889444 [file] [log] [blame]
alshabiba9b2b5d2015-09-23 15:01:47 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
alshabiba9b2b5d2015-09-23 15:01:47 -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 */
alshabib2ce0c732015-10-02 11:20:39 +020016package org.onosproject.net.mcast;
alshabiba9b2b5d2015-09-23 15:01:47 -070017
alshabibbf85a102015-12-04 15:45:43 -080018import org.onosproject.event.ListenerService;
alshabiba9b2b5d2015-09-23 15:01:47 -070019import org.onosproject.net.ConnectPoint;
20
alshabib79e52872015-12-07 16:01:01 -080021import java.util.Set;
alshabiba9b2b5d2015-09-23 15:01:47 -070022
23/**
24 * A service interface for maintaining multicast information.
Ray Milkey50b14582017-08-23 09:55:02 -070025 *
26 * @deprecated in 1.11 ("Loon") release. To be moved into an app.
alshabiba9b2b5d2015-09-23 15:01:47 -070027 */
Ray Milkey50b14582017-08-23 09:55:02 -070028@Deprecated
alshabibbf85a102015-12-04 15:45:43 -080029public interface MulticastRouteService
30 extends ListenerService<McastEvent, McastListener> {
alshabiba9b2b5d2015-09-23 15:01:47 -070031
32 /**
33 * Adds a route to the information base.
34 *
35 * @param route a multicast route
36 */
37 void add(McastRoute route);
38
39 /**
40 * Removes a route from the information base.
41 *
42 * @param route a multicast route
43 */
44 void remove(McastRoute route);
45
46 /**
Jonathan Hart07eb0412016-02-08 16:42:29 -080047 * Gets all multicast routes in the system.
48 *
49 * @return set of multicast routes
50 */
51 Set<McastRoute> getRoutes();
52
53 /**
alshabiba9b2b5d2015-09-23 15:01:47 -070054 * Adds a source connection to the route from where the
55 * data stream is originating.
56 *
57 * @param route the multicast route
58 * @param connectPoint a source connect point
59 */
60 void addSource(McastRoute route, ConnectPoint connectPoint);
61
62 /**
63 * Adds a sink to the route to which a data stream should be
64 * sent to.
65 *
66 * @param route a multicast route
67 * @param connectPoint a sink connect point
68 */
69 void addSink(McastRoute route, ConnectPoint connectPoint);
70
71 /**
alshabiba9b2b5d2015-09-23 15:01:47 -070072 * Removes a sink from the route.
73 *
74 * @param route the multicast route
75 * @param connectPoint a sink connect point
76 */
77 void removeSink(McastRoute route, ConnectPoint connectPoint);
78
79 /**
80 * Find the data source association for this multicast route.
81 *
82 * @param route a multicast route
83 * @return a connect point
84 */
85 ConnectPoint fetchSource(McastRoute route);
86
87 /**
88 * Find the list of sinks for this route.
89 *
90 * @param route a multicast route
91 * @return a list of connect points
92 */
alshabib79e52872015-12-07 16:01:01 -080093 Set<ConnectPoint> fetchSinks(McastRoute route);
alshabiba9b2b5d2015-09-23 15:01:47 -070094}