Jonathan Hart | 4701671 | 2014-02-07 12:41:35 -0800 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.networkgraph.web; |
| 2 | |
| 3 | import net.onrc.onos.datastore.topology.RCSwitch; |
Jonathan Hart | 4701671 | 2014-02-07 12:41:35 -0800 | [diff] [blame] | 4 | |
| 5 | import org.restlet.resource.Get; |
| 6 | import org.restlet.resource.ServerResource; |
| 7 | |
| 8 | public class RamcloudSwitchesResource extends ServerResource { |
| 9 | |
| 10 | @Get("json") |
| 11 | public Iterable<RCSwitch> retrieve() { |
Jonathan Hart | 4701671 | 2014-02-07 12:41:35 -0800 | [diff] [blame] | 12 | return RCSwitch.getAllSwitches(); |
| 13 | } |
| 14 | |
| 15 | } |