Marc De Leenheer

Merge branch 'optical-integration' of ssh://gerrit.onlab.us:29418/onos-next into optical-integration

...@@ -31,6 +31,14 @@ public interface LinkResourceService { ...@@ -31,6 +31,14 @@ public interface LinkResourceService {
31 Iterable<LinkResourceAllocations> getAllocations(); 31 Iterable<LinkResourceAllocations> getAllocations();
32 32
33 /** 33 /**
34 + * Returns the resources allocated for an Intent.
35 + *
36 + * @param intentId the target Intent's id
37 + * @return allocated resources for Intent
38 + */
39 + LinkResourceAllocations getAllocation(IntentId intentId);
40 +
41 + /**
34 * Returns all allocated resources to given link. 42 * Returns all allocated resources to given link.
35 * 43 *
36 * @param link a target link 44 * @param link a target link
......
...@@ -48,6 +48,12 @@ public class LinkResourceManager implements LinkResourceService { ...@@ -48,6 +48,12 @@ public class LinkResourceManager implements LinkResourceService {
48 } 48 }
49 49
50 @Override 50 @Override
51 + public LinkResourceAllocations getAllocation(IntentId intentId) {
52 + // TODO Auto-generated method stub
53 + return null;
54 + }
55 +
56 + @Override
51 public Iterable<LinkResourceAllocations> getAllocations(Link link) { 57 public Iterable<LinkResourceAllocations> getAllocations(Link link) {
52 // TODO Auto-generated method stub 58 // TODO Auto-generated method stub
53 return null; 59 return null;
......