Deprecate old MD-SAL APIs for removal
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / routing / RouteChange.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.md.sal.common.api.routing;
9
10 import java.util.Map;
11 import java.util.Set;
12
13 /**
14  * Event representing change in RPC routing table.
15  *
16  *
17  * @param <C> Type, which is used to represent Routing context.
18  * @param <P> Type of data tree path, which is used to identify route.
19  */
20 @Deprecated(forRemoval = true)
21 public interface RouteChange<C, P> {
22
23     /**
24      * Returns a map of removed routes in associated routing contexts.
25      *
26      * <p>
27      * This map represents routes, which were withdrawn from broker local
28      * routing table and broker may need to forward RPC to other broker
29      * in order to process RPC request.
30      *
31      * @return Map of contexts and removed routes
32      */
33     Map<C,Set<P>> getRemovals();
34
35     /**
36      * Returns a map of announced routes in associated routing contexts.
37      *
38      * <p>
39      * This map represents routes, which were announced by broker
40      * and are present in broker's local routing table. This routes
41      * are processed by implementations which are registered
42      * to originating broker.
43      *
44      * @return Map of contexts and announced routes
45      */
46     Map<C, Set<P>> getAnnouncements();
47 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.