Toshio Koide | 50df38d | 2014-10-23 10:36:51 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.net.resource; |
| 2 | |
| 3 | import static org.slf4j.LoggerFactory.getLogger; |
| 4 | |
| 5 | import org.apache.felix.scr.annotations.Activate; |
| 6 | import org.apache.felix.scr.annotations.Component; |
| 7 | import org.apache.felix.scr.annotations.Deactivate; |
| 8 | import org.apache.felix.scr.annotations.Service; |
| 9 | import org.onlab.onos.net.Link; |
| 10 | import org.onlab.onos.net.intent.IntentId; |
| 11 | import org.slf4j.Logger; |
| 12 | |
| 13 | /** |
| 14 | * Provides basic implementation of link resources allocation. |
| 15 | */ |
| 16 | @Component(immediate = true) |
| 17 | @Service |
| 18 | public class LinkResourceManager implements LinkResourceService { |
| 19 | |
| 20 | private final Logger log = getLogger(getClass()); |
| 21 | |
| 22 | @Activate |
| 23 | public void activate() { |
| 24 | log.info("Started"); |
| 25 | } |
| 26 | |
| 27 | @Deactivate |
| 28 | public void deactivate() { |
| 29 | log.info("Stopped"); |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | public LinkResourceAllocations requestResources(LinkResourceRequest req) { |
| 34 | // TODO Auto-generated method stub |
| 35 | return null; |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public void releaseResources(LinkResourceAllocations allocations) { |
| 40 | // TODO Auto-generated method stub |
| 41 | |
| 42 | } |
| 43 | |
| 44 | @Override |
| 45 | public Iterable<LinkResourceAllocations> getAllocations() { |
| 46 | // TODO Auto-generated method stub |
| 47 | return null; |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public Iterable<LinkResourceAllocations> getAllocations(Link link) { |
| 52 | // TODO Auto-generated method stub |
| 53 | return null; |
| 54 | } |
| 55 | |
| 56 | @Override |
| 57 | public Iterable<IntentId> getIntents(Link link) { |
| 58 | // TODO Auto-generated method stub |
| 59 | return null; |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public ResourceRequest getAvailableResources(Link link) { |
| 64 | // TODO Auto-generated method stub |
| 65 | return null; |
| 66 | } |
| 67 | |
| 68 | } |