Yuta HIGUCHI
Committed by Gerrit Code Review

LinkResourceStores: use AnnotationKeys

Change-Id: I6d24d458a9d9c538ac55257f200e3cff79b1ef6d
......@@ -29,6 +29,7 @@ import org.apache.felix.scr.annotations.Deactivate;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.ReferenceCardinality;
import org.apache.felix.scr.annotations.Service;
import org.onlab.onos.net.AnnotationKeys;
import org.onlab.onos.net.Link;
import org.onlab.onos.net.LinkKey;
import org.onlab.onos.net.intent.IntentId;
......@@ -99,9 +100,9 @@ public class DistributedLinkResourceStore implements LinkResourceStore {
protected LinkService linkService;
// Link annotation key name to use as bandwidth
private String bandwidthAnnotation = "bandwidth";
private String bandwidthAnnotation = AnnotationKeys.BANDWIDTH;
// Link annotation key name to use as max lambda
private String wavesAnnotation = "optical.waves";
private String wavesAnnotation = AnnotationKeys.OPTICAL_WAVES;
private StoreSerializer serializer;
......
......@@ -30,6 +30,7 @@ import org.apache.felix.scr.annotations.Deactivate;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.ReferenceCardinality;
import org.apache.felix.scr.annotations.Service;
import org.onlab.onos.net.AnnotationKeys;
import org.onlab.onos.net.Link;
import org.onlab.onos.net.LinkKey;
import org.onlab.onos.net.intent.IntentId;
......@@ -95,9 +96,9 @@ public class HazelcastLinkResourceStore
protected LinkService linkService;
// Link annotation key name to use as bandwidth
private String bandwidthAnnotation = "bandwidth";
private String bandwidthAnnotation = AnnotationKeys.BANDWIDTH;
// Link annotation key name to use as max lambda
private String wavesAnnotation = "optical.waves";
private String wavesAnnotation = AnnotationKeys.OPTICAL_WAVES;
@Override
@Activate
......