Committed by
Gerrit Code Review
Remove LinkResourceStore and its implementations
They were deprecated in Emu Change-Id: I4272c7788bcd74ad7f272392a67b07bde6b09df4
Showing
4 changed files
with
0 additions
and
76 deletions
1 | -/* | ||
2 | - * Copyright 2014 Open Networking Laboratory | ||
3 | - * | ||
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 | -package org.onosproject.net.resource.link; | ||
17 | - | ||
18 | -import java.util.Set; | ||
19 | - | ||
20 | -import org.onosproject.net.Link; | ||
21 | -import org.onosproject.net.intent.IntentId; | ||
22 | -import org.onosproject.net.resource.ResourceAllocation; | ||
23 | - | ||
24 | -/** | ||
25 | - * Manages link resources. | ||
26 | - * | ||
27 | - * @deprecated in Emu Release. | ||
28 | - */ | ||
29 | -@Deprecated | ||
30 | -public interface LinkResourceStore { | ||
31 | - /** | ||
32 | - * Returns free resources for given link. | ||
33 | - * | ||
34 | - * @param link a target link | ||
35 | - * @return free resources for given link | ||
36 | - */ | ||
37 | - Set<ResourceAllocation> getFreeResources(Link link); | ||
38 | - | ||
39 | - /** | ||
40 | - * Allocates resources. | ||
41 | - * | ||
42 | - * @param allocations resources to be allocated | ||
43 | - */ | ||
44 | - void allocateResources(LinkResourceAllocations allocations); | ||
45 | - | ||
46 | - /** | ||
47 | - * Releases resources. | ||
48 | - * | ||
49 | - * @param allocations resources to be released | ||
50 | - * @return the link resource event | ||
51 | - */ | ||
52 | - LinkResourceEvent releaseResources(LinkResourceAllocations allocations); | ||
53 | - | ||
54 | - /** | ||
55 | - * Returns resources allocated for an Intent. | ||
56 | - * | ||
57 | - * @param intentId the target Intent's ID | ||
58 | - * @return allocated resources or null if no resource is allocated | ||
59 | - */ | ||
60 | - LinkResourceAllocations getAllocations(IntentId intentId); | ||
61 | - | ||
62 | - /** | ||
63 | - * Returns resources allocated for a link. | ||
64 | - * | ||
65 | - * @param link the target link | ||
66 | - * @return allocated resources | ||
67 | - */ | ||
68 | - Iterable<LinkResourceAllocations> getAllocations(Link link); | ||
69 | - | ||
70 | - /** | ||
71 | - * Returns all allocated resources. | ||
72 | - * | ||
73 | - * @return allocated resources | ||
74 | - */ | ||
75 | - Iterable<LinkResourceAllocations> getAllocations(); | ||
76 | -} |
core/common/src/test/java/org/onosproject/store/trivial/SimpleLinkResourceStore.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
core/common/src/test/java/org/onosproject/store/trivial/SimpleLinkResourceStoreTest.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment