Brian O'Connor

Adding @Beta to LabelResourceService and other interfaces in API package

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