Sho SHIMIZU
Committed by Gerrit Code Review

Make the old resource APIs deprecated

Change-Id: Ib3158f3f363c928353f6ef82aac98a8e4e589953
Showing 23 changed files with 76 additions and 0 deletions
......@@ -23,7 +23,10 @@ import static com.google.common.base.Preconditions.checkNotNull;
/**
* Representation of bandwidth resource in bps.
*
* @deprecated in Emu Release
*/
@Deprecated
public final class BandwidthResource implements LinkResource {
private final Bandwidth bandwidth;
......
......@@ -23,7 +23,10 @@ import java.util.Objects;
/**
* Representation of allocated bandwidth resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public class BandwidthResourceAllocation implements ResourceAllocation {
private final BandwidthResource bandwidth;
......
......@@ -23,7 +23,10 @@ import org.onosproject.net.resource.ResourceType;
/**
* Representation of a request for bandwidth resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public class BandwidthResourceRequest implements ResourceRequest {
private final BandwidthResource bandwidth;
......
......@@ -36,7 +36,10 @@ import java.util.Set;
/**
* Implementation of {@link LinkResourceAllocations}.
*
* @deprecated in Emu Release
*/
@Deprecated
public class DefaultLinkResourceAllocations implements LinkResourceAllocations {
private final LinkResourceRequest request;
// TODO: probably should be using LinkKey instead
......
......@@ -39,7 +39,10 @@ import static com.google.common.base.Preconditions.checkNotNull;
/**
* Implementation of {@link LinkResourceRequest}.
*
* @deprecated in Emu Release
*/
@Deprecated
public final class DefaultLinkResourceRequest implements LinkResourceRequest {
private final IntentId intentId;
......
......@@ -23,7 +23,10 @@ import static com.google.common.base.Preconditions.checkNotNull;
/**
* Representation of lambda resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public final class LambdaResource implements LinkResource {
private final IndexedLambda lambda;
......
......@@ -23,7 +23,10 @@ import java.util.Objects;
/**
* Representation of allocated lambda resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public class LambdaResourceAllocation implements ResourceAllocation {
private final LambdaResource lambda;
......
......@@ -24,7 +24,10 @@ import static com.google.common.base.Preconditions.checkNotNull;
/**
* Representation of a request for lambda resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public class LambdaResourceRequest implements ResourceRequest {
private final LambdaResource lambda;
......
......@@ -17,6 +17,9 @@ package org.onosproject.net.resource.link;
/**
* Abstraction of link resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public interface LinkResource {
}
......
......@@ -25,7 +25,10 @@ import org.onosproject.net.resource.ResourceRequest;
/**
* Representation of allocated link resources.
*
* @deprecated
*/
@Deprecated
public interface LinkResourceAllocations extends ResourceAllocation {
/**
......
......@@ -23,7 +23,10 @@ import com.google.common.collect.ImmutableList;
/**
* Describes an event related to a Link Resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public final class LinkResourceEvent
extends AbstractEvent<LinkResourceEvent.Type, Collection<LinkResourceAllocations>> {
......
......@@ -19,6 +19,9 @@ import org.onosproject.event.EventListener;
/**
* Entity for receiving link resource events.
*
* @deprecated in Emu Release
*/
@Deprecated
public interface LinkResourceListener extends EventListener<LinkResourceEvent> {
}
......
......@@ -27,7 +27,10 @@ import org.onosproject.net.resource.ResourceRequest;
/**
* Representation of a request for link resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public interface LinkResourceRequest extends ResourceRequest {
/**
......
......@@ -23,7 +23,10 @@ import org.onosproject.net.resource.ResourceAllocation;
/**
* Manages link resources.
*
* @deprecated in Emu Release.
*/
@Deprecated
public interface LinkResourceStore {
/**
* Returns free resources for given link.
......
......@@ -19,6 +19,9 @@ import org.onosproject.store.StoreDelegate;
/**
* Link resource store delegate abstraction.
*
* @deprecated in Emu Release
*/
@Deprecated
public interface LinkResourceStoreDelegate extends StoreDelegate<LinkResourceEvent> {
}
......
......@@ -19,7 +19,10 @@ import java.util.Set;
/**
* Abstraction of a resources of a link.
*
* @deprecated in Emu Release
*/
@Deprecated
public interface LinkResources {
/**
......@@ -31,7 +34,10 @@ public interface LinkResources {
/**
* Builder of {@link LinkResources}.
*
* @deprecated in Emu Release
*/
@Deprecated
interface Builder {
/**
......
......@@ -20,7 +20,10 @@ import java.util.Objects;
/**
* Representation of MPLS label resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public final class MplsLabel implements LinkResource {
private final org.onlab.packet.MplsLabel mplsLabel;
......
......@@ -24,7 +24,10 @@ import java.util.Objects;
/**
* Representation of allocated MPLS label resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public class MplsLabelResourceAllocation implements ResourceAllocation {
private final MplsLabel mplsLabel;
......
......@@ -24,7 +24,10 @@ import static com.google.common.base.Preconditions.checkNotNull;
/**
* Representation of a request for lambda resource.
*
* @deprecated in Emu Release
*/
@Deprecated
public class MplsLabelResourceRequest implements ResourceRequest {
private final MplsLabel mplsLabel;
......
......@@ -17,5 +17,11 @@
/**
* Services for reserving links and their capacity as network resources,
* e.g.&nbsp;bandwidth, lambdas.
* <p>
* Note: Classes under the package will be remove.
* Developers should not use the classes.
* This package is marked as deprecated in Emu Release.
* </p>
*/
@Deprecated
package org.onosproject.net.resource.link;
......
......@@ -16,5 +16,9 @@
/**
* Abstractions for reserving network resources.
* <p>
* Note: Classes under the package will be removed.
* Developers should not use the classes.
* </p>
*/
package org.onosproject.net.resource;
......
......@@ -52,7 +52,10 @@ import static org.slf4j.LoggerFactory.getLogger;
/**
* Manages link resources using trivial in-memory structures implementation.
*
* @deprecated in Emu Release
*/
@Deprecated
@Component(immediate = true)
@Service
public class SimpleLinkResourceStore implements LinkResourceStore {
......
......@@ -72,7 +72,10 @@ import static org.onosproject.net.AnnotationKeys.BANDWIDTH;
/**
* Store that manages link resources using Copycat-backed TransactionalMaps.
*
* @deprecated in Emu Release
*/
@Deprecated
@Component(immediate = true, enabled = true)
@Service
public class ConsistentLinkResourceStore extends
......