blob: ace0bc8029f2c1233a1b4345e50bdf70a58bb26e [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001package net.floodlightcontroller.perfmon;
2
3import org.restlet.Context;
4import org.restlet.Restlet;
5import org.restlet.routing.Router;
6
7import net.floodlightcontroller.restserver.RestletRoutable;
8
9public class PerfWebRoutable implements RestletRoutable {
10
11 @Override
12 public Restlet getRestlet(Context context) {
13 Router router = new Router(context);
14 router.attach("/data/json", PerfMonDataResource.class);
15 router.attach("/{perfmonstate}/json", PerfMonToggleResource.class); // enable, disable, or reset
16 return router;
17 }
18
19 @Override
20 public String basePath() {
21 return "/wm/performance";
22 }
23}