Committed by
Gerrit Code Review
Make LinkResourceService deprecated
Change-Id: Iff92b25f51b9b1d8da4e8ed869afc51e5048d978
Showing
1 changed file
with
19 additions
and
0 deletions
... | @@ -22,7 +22,10 @@ import org.onosproject.net.resource.ResourceRequest; | ... | @@ -22,7 +22,10 @@ import org.onosproject.net.resource.ResourceRequest; |
22 | 22 | ||
23 | /** | 23 | /** |
24 | * Service for providing link resource allocation. | 24 | * Service for providing link resource allocation. |
25 | + * | ||
26 | + * @deprecated in Emu Release | ||
25 | */ | 27 | */ |
28 | +@Deprecated | ||
26 | public interface LinkResourceService | 29 | public interface LinkResourceService |
27 | extends ListenerService<LinkResourceEvent, LinkResourceListener> { | 30 | extends ListenerService<LinkResourceEvent, LinkResourceListener> { |
28 | 31 | ||
... | @@ -31,14 +34,18 @@ public interface LinkResourceService | ... | @@ -31,14 +34,18 @@ public interface LinkResourceService |
31 | * | 34 | * |
32 | * @param req resources to be allocated | 35 | * @param req resources to be allocated |
33 | * @return allocated resources | 36 | * @return allocated resources |
37 | + * @deprecated in Emu Release | ||
34 | */ | 38 | */ |
39 | + @Deprecated | ||
35 | LinkResourceAllocations requestResources(LinkResourceRequest req); | 40 | LinkResourceAllocations requestResources(LinkResourceRequest req); |
36 | 41 | ||
37 | /** | 42 | /** |
38 | * Releases resources. | 43 | * Releases resources. |
39 | * | 44 | * |
40 | * @param allocations resources to be released | 45 | * @param allocations resources to be released |
46 | + * @deprecated in Emu Release | ||
41 | */ | 47 | */ |
48 | + @Deprecated | ||
42 | void releaseResources(LinkResourceAllocations allocations); | 49 | void releaseResources(LinkResourceAllocations allocations); |
43 | 50 | ||
44 | /** | 51 | /** |
... | @@ -47,7 +54,9 @@ public interface LinkResourceService | ... | @@ -47,7 +54,9 @@ public interface LinkResourceService |
47 | * @param req updated resource request | 54 | * @param req updated resource request |
48 | * @param oldAllocations old resource allocations | 55 | * @param oldAllocations old resource allocations |
49 | * @return new resource allocations | 56 | * @return new resource allocations |
57 | + * @deprecated in Emu Release | ||
50 | */ | 58 | */ |
59 | + @Deprecated | ||
51 | LinkResourceAllocations updateResources(LinkResourceRequest req, | 60 | LinkResourceAllocations updateResources(LinkResourceRequest req, |
52 | LinkResourceAllocations oldAllocations); | 61 | LinkResourceAllocations oldAllocations); |
53 | 62 | ||
... | @@ -55,7 +64,9 @@ public interface LinkResourceService | ... | @@ -55,7 +64,9 @@ public interface LinkResourceService |
55 | * Returns all allocated resources. | 64 | * Returns all allocated resources. |
56 | * | 65 | * |
57 | * @return allocated resources | 66 | * @return allocated resources |
67 | + * @deprecated in Emu Release | ||
58 | */ | 68 | */ |
69 | + @Deprecated | ||
59 | Iterable<LinkResourceAllocations> getAllocations(); | 70 | Iterable<LinkResourceAllocations> getAllocations(); |
60 | 71 | ||
61 | /** | 72 | /** |
... | @@ -63,7 +74,9 @@ public interface LinkResourceService | ... | @@ -63,7 +74,9 @@ public interface LinkResourceService |
63 | * | 74 | * |
64 | * @param link a target link | 75 | * @param link a target link |
65 | * @return allocated resources | 76 | * @return allocated resources |
77 | + * @deprecated in Emu Release | ||
66 | */ | 78 | */ |
79 | + @Deprecated | ||
67 | Iterable<LinkResourceAllocations> getAllocations(Link link); | 80 | Iterable<LinkResourceAllocations> getAllocations(Link link); |
68 | 81 | ||
69 | /** | 82 | /** |
... | @@ -71,7 +84,9 @@ public interface LinkResourceService | ... | @@ -71,7 +84,9 @@ public interface LinkResourceService |
71 | * | 84 | * |
72 | * @param intentId the target Intent's id | 85 | * @param intentId the target Intent's id |
73 | * @return allocated resources for Intent | 86 | * @return allocated resources for Intent |
87 | + * @deprecated in Emu Release | ||
74 | */ | 88 | */ |
89 | + @Deprecated | ||
75 | LinkResourceAllocations getAllocations(IntentId intentId); | 90 | LinkResourceAllocations getAllocations(IntentId intentId); |
76 | 91 | ||
77 | /** | 92 | /** |
... | @@ -79,7 +94,9 @@ public interface LinkResourceService | ... | @@ -79,7 +94,9 @@ public interface LinkResourceService |
79 | * | 94 | * |
80 | * @param link a target link | 95 | * @param link a target link |
81 | * @return available resources for the target link | 96 | * @return available resources for the target link |
97 | + * @deprecated in Emu Release | ||
82 | */ | 98 | */ |
99 | + @Deprecated | ||
83 | Iterable<ResourceRequest> getAvailableResources(Link link); | 100 | Iterable<ResourceRequest> getAvailableResources(Link link); |
84 | 101 | ||
85 | /** | 102 | /** |
... | @@ -88,7 +105,9 @@ public interface LinkResourceService | ... | @@ -88,7 +105,9 @@ public interface LinkResourceService |
88 | * @param link a target link | 105 | * @param link a target link |
89 | * @param allocations allocations to be included as available | 106 | * @param allocations allocations to be included as available |
90 | * @return available resources for the target link | 107 | * @return available resources for the target link |
108 | + * @deprecated in Emu Release | ||
91 | */ | 109 | */ |
110 | + @Deprecated | ||
92 | Iterable<ResourceRequest> getAvailableResources(Link link, | 111 | Iterable<ResourceRequest> getAvailableResources(Link link, |
93 | LinkResourceAllocations allocations); | 112 | LinkResourceAllocations allocations); |
94 | 113 | ... | ... |
-
Please register or login to post a comment