Adding @Beta to LabelResourceService and other interfaces in API package
Change-Id: Ic959bd78e60be6995648649db69556e543a25325
Showing
14 changed files
with
33 additions
and
0 deletions
... | @@ -2,6 +2,7 @@ package org.onosproject.incubator.net.resource.label; | ... | @@ -2,6 +2,7 @@ package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | import java.util.Objects; | 3 | import java.util.Objects; |
4 | 4 | ||
5 | +import com.google.common.annotations.Beta; | ||
5 | import org.onosproject.net.Annotations; | 6 | import org.onosproject.net.Annotations; |
6 | import org.onosproject.net.DeviceId; | 7 | import org.onosproject.net.DeviceId; |
7 | import org.onosproject.net.provider.ProviderId; | 8 | import org.onosproject.net.provider.ProviderId; |
... | @@ -10,6 +11,7 @@ import static com.google.common.base.MoreObjects.toStringHelper; | ... | @@ -10,6 +11,7 @@ import static com.google.common.base.MoreObjects.toStringHelper; |
10 | /** | 11 | /** |
11 | * the implementation of a label resource of a device. | 12 | * the implementation of a label resource of a device. |
12 | */ | 13 | */ |
14 | +@Beta | ||
13 | public final class DefaultLabelResource implements LabelResource { | 15 | public final class DefaultLabelResource implements LabelResource { |
14 | 16 | ||
15 | private DeviceId deviceId; | 17 | private DeviceId deviceId; | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.net.Annotated; | 4 | import org.onosproject.net.Annotated; |
4 | import org.onosproject.net.DeviceId; | 5 | import org.onosproject.net.DeviceId; |
5 | import org.onosproject.net.NetworkResource; | 6 | import org.onosproject.net.NetworkResource; |
... | @@ -8,6 +9,7 @@ import org.onosproject.net.Provided; | ... | @@ -8,6 +9,7 @@ import org.onosproject.net.Provided; |
8 | /** | 9 | /** |
9 | * Representation of label resource. | 10 | * Representation of label resource. |
10 | */ | 11 | */ |
12 | +@Beta | ||
11 | public interface LabelResource extends Annotated, Provided, NetworkResource { | 13 | public interface LabelResource extends Annotated, Provided, NetworkResource { |
12 | /** | 14 | /** |
13 | * Returns device id. | 15 | * Returns device id. | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.net.DeviceId; | 4 | import org.onosproject.net.DeviceId; |
4 | 5 | ||
5 | /** | 6 | /** |
6 | * Service for managing label resource. | 7 | * Service for managing label resource. |
7 | */ | 8 | */ |
9 | +@Beta | ||
8 | public interface LabelResourceAdminService { | 10 | public interface LabelResourceAdminService { |
9 | /** | 11 | /** |
10 | * Creates the only label resource of some device id from begin label to end | 12 | * Creates the only label resource of some device id from begin label to end | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.store.StoreDelegate; | 4 | import org.onosproject.store.StoreDelegate; |
5 | + | ||
4 | /** | 6 | /** |
5 | * Label resource store delegate. | 7 | * Label resource store delegate. |
6 | */ | 8 | */ |
9 | +@Beta | ||
7 | public interface LabelResourceDelegate extends StoreDelegate<LabelResourceEvent> { | 10 | public interface LabelResourceDelegate extends StoreDelegate<LabelResourceEvent> { |
8 | 11 | ||
9 | } | 12 | } | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.event.AbstractEvent; | 4 | import org.onosproject.event.AbstractEvent; |
4 | 5 | ||
5 | /** | 6 | /** |
6 | * Describes label resource event. | 7 | * Describes label resource event. |
7 | */ | 8 | */ |
9 | +@Beta | ||
8 | public final class LabelResourceEvent | 10 | public final class LabelResourceEvent |
9 | extends AbstractEvent<LabelResourceEvent.Type, LabelResourcePool> { | 11 | extends AbstractEvent<LabelResourceEvent.Type, LabelResourcePool> { |
10 | 12 | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.net.resource.ResourceId; | 4 | import org.onosproject.net.resource.ResourceId; |
4 | 5 | ||
5 | import java.util.Objects; | 6 | import java.util.Objects; |
... | @@ -7,6 +8,7 @@ import java.util.Objects; | ... | @@ -7,6 +8,7 @@ import java.util.Objects; |
7 | /** | 8 | /** |
8 | * Representation of a label. | 9 | * Representation of a label. |
9 | */ | 10 | */ |
11 | +@Beta | ||
10 | public final class LabelResourceId implements ResourceId { | 12 | public final class LabelResourceId implements ResourceId { |
11 | 13 | ||
12 | private long labelId; | 14 | private long labelId; | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.event.EventListener; | 4 | import org.onosproject.event.EventListener; |
5 | + | ||
4 | /** | 6 | /** |
5 | * Entity capable of receiving label resource related events. | 7 | * Entity capable of receiving label resource related events. |
6 | */ | 8 | */ |
9 | +@Beta | ||
7 | public interface LabelResourceListener extends EventListener<LabelResourceEvent> { | 10 | public interface LabelResourceListener extends EventListener<LabelResourceEvent> { |
8 | 11 | ||
9 | } | 12 | } | ... | ... |
... | @@ -6,6 +6,7 @@ import java.util.Collections; | ... | @@ -6,6 +6,7 @@ import java.util.Collections; |
6 | import java.util.Objects; | 6 | import java.util.Objects; |
7 | import java.util.Set; | 7 | import java.util.Set; |
8 | 8 | ||
9 | +import com.google.common.annotations.Beta; | ||
9 | import org.onosproject.net.DeviceId; | 10 | import org.onosproject.net.DeviceId; |
10 | 11 | ||
11 | import com.google.common.base.MoreObjects; | 12 | import com.google.common.base.MoreObjects; |
... | @@ -19,6 +20,7 @@ import com.google.common.collect.ImmutableSet; | ... | @@ -19,6 +20,7 @@ import com.google.common.collect.ImmutableSet; |
19 | * labels by calculating with three attributes, beginLabel,endLabel and | 20 | * labels by calculating with three attributes, beginLabel,endLabel and |
20 | * currentUsedMaxLabelId | 21 | * currentUsedMaxLabelId |
21 | */ | 22 | */ |
23 | +@Beta | ||
22 | public class LabelResourcePool { | 24 | public class LabelResourcePool { |
23 | 25 | ||
24 | private final DeviceId deviceId; | 26 | private final DeviceId deviceId; | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.net.provider.Provider; | 4 | import org.onosproject.net.provider.Provider; |
5 | + | ||
4 | /** | 6 | /** |
5 | * Abstraction of an entity providing information about label resource | 7 | * Abstraction of an entity providing information about label resource |
6 | * to the core. | 8 | * to the core. |
7 | */ | 9 | */ |
10 | +@Beta | ||
8 | public interface LabelResourceProvider extends Provider { | 11 | public interface LabelResourceProvider extends Provider { |
9 | 12 | ||
10 | } | 13 | } | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.net.provider.ProviderRegistry; | 4 | import org.onosproject.net.provider.ProviderRegistry; |
5 | + | ||
4 | /** | 6 | /** |
5 | * Abstraction of an label resource provider registry. | 7 | * Abstraction of an label resource provider registry. |
6 | */ | 8 | */ |
9 | +@Beta | ||
7 | public interface LabelResourceProviderRegistry | 10 | public interface LabelResourceProviderRegistry |
8 | extends ProviderRegistry<LabelResourceProvider, LabelResourceProviderService> { | 11 | extends ProviderRegistry<LabelResourceProvider, LabelResourceProviderService> { |
9 | 12 | ... | ... |
1 | package org.onosproject.incubator.net.resource.label; | 1 | package org.onosproject.incubator.net.resource.label; |
2 | 2 | ||
3 | +import com.google.common.annotations.Beta; | ||
3 | import org.onosproject.net.DeviceId; | 4 | import org.onosproject.net.DeviceId; |
4 | import org.onosproject.net.provider.ProviderService; | 5 | import org.onosproject.net.provider.ProviderService; |
5 | 6 | ||
6 | /** | 7 | /** |
7 | * Means for injecting label information into the core. | 8 | * Means for injecting label information into the core. |
8 | */ | 9 | */ |
10 | +@Beta | ||
9 | public interface LabelResourceProviderService extends ProviderService<LabelResourceProvider> { | 11 | public interface LabelResourceProviderService extends ProviderService<LabelResourceProvider> { |
10 | 12 | ||
11 | /** | 13 | /** | ... | ... |
... | @@ -3,13 +3,16 @@ package org.onosproject.incubator.net.resource.label; | ... | @@ -3,13 +3,16 @@ package org.onosproject.incubator.net.resource.label; |
3 | import java.util.Collection; | 3 | import java.util.Collection; |
4 | import java.util.Objects; | 4 | import java.util.Objects; |
5 | 5 | ||
6 | +import com.google.common.annotations.Beta; | ||
6 | import org.onosproject.net.DeviceId; | 7 | import org.onosproject.net.DeviceId; |
7 | 8 | ||
8 | import com.google.common.base.MoreObjects; | 9 | import com.google.common.base.MoreObjects; |
9 | import com.google.common.collect.ImmutableSet; | 10 | import com.google.common.collect.ImmutableSet; |
11 | + | ||
10 | /** | 12 | /** |
11 | * Represents for a label request. | 13 | * Represents for a label request. |
12 | */ | 14 | */ |
15 | +@Beta | ||
13 | public class LabelResourceRequest { | 16 | public class LabelResourceRequest { |
14 | 17 | ||
15 | private final DeviceId deviceId; | 18 | private final DeviceId deviceId; | ... | ... |
... | @@ -3,6 +3,7 @@ package org.onosproject.incubator.net.resource.label; | ... | @@ -3,6 +3,7 @@ package org.onosproject.incubator.net.resource.label; |
3 | import java.util.Collection; | 3 | import java.util.Collection; |
4 | import java.util.Set; | 4 | import java.util.Set; |
5 | 5 | ||
6 | +import com.google.common.annotations.Beta; | ||
6 | import org.onosproject.net.DeviceId; | 7 | import org.onosproject.net.DeviceId; |
7 | 8 | ||
8 | import com.google.common.collect.Multimap; | 9 | import com.google.common.collect.Multimap; |
... | @@ -10,6 +11,7 @@ import com.google.common.collect.Multimap; | ... | @@ -10,6 +11,7 @@ import com.google.common.collect.Multimap; |
10 | /** | 11 | /** |
11 | * Service for providing label resource allocation. | 12 | * Service for providing label resource allocation. |
12 | */ | 13 | */ |
14 | +@Beta | ||
13 | public interface LabelResourceService { | 15 | public interface LabelResourceService { |
14 | 16 | ||
15 | /** | 17 | /** | ... | ... |
... | @@ -3,6 +3,7 @@ package org.onosproject.incubator.net.resource.label; | ... | @@ -3,6 +3,7 @@ package org.onosproject.incubator.net.resource.label; |
3 | import java.util.Collection; | 3 | import java.util.Collection; |
4 | import java.util.Set; | 4 | import java.util.Set; |
5 | 5 | ||
6 | +import com.google.common.annotations.Beta; | ||
6 | import org.onosproject.net.DeviceId; | 7 | import org.onosproject.net.DeviceId; |
7 | import org.onosproject.store.Store; | 8 | import org.onosproject.store.Store; |
8 | 9 | ||
... | @@ -12,6 +13,7 @@ import com.google.common.collect.Multimap; | ... | @@ -12,6 +13,7 @@ import com.google.common.collect.Multimap; |
12 | * Manages inventory of label; not intended for direct use. | 13 | * Manages inventory of label; not intended for direct use. |
13 | * | 14 | * |
14 | */ | 15 | */ |
16 | +@Beta | ||
15 | public interface LabelResourceStore | 17 | public interface LabelResourceStore |
16 | extends Store<LabelResourceEvent, LabelResourceDelegate> { | 18 | extends Store<LabelResourceEvent, LabelResourceDelegate> { |
17 | 19 | ... | ... |
-
Please register or login to post a comment