@Override public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/module/all/json", ModuleLoaderResource.class); router.attach("/module/loaded/json", LoadedModuleLoaderResource.class); router.attach("/switch/{" + STR_SWITCH_ID + "}/role/json", SwitchRoleResource.class); router.attach("/switch/all/{" + STR_STAT_TYPE + "}/json", AllSwitchStatisticsResource.class); router.attach("/switch/{" + STR_SWITCH_ID + "}/{" + STR_STAT_TYPE + "}/json", SwitchStatisticsResource.class); router.attach("/controller/switches/json", ControllerSwitchesResource.class); router.attach("/counter/{" + STR_CTR_MODULE + "}/{" + STR_CTR_TITLE + "}/json", CounterResource.class); router.attach("/memory/json", ControllerMemoryResource.class); router.attach("/packettrace/json", PacketTraceResource.class); router.attach("/storage/tables/json", StorageSourceTablesResource.class); router.attach("/controller/summary/json", ControllerSummaryResource.class); router.attach("/role/json", ControllerRoleResource.class); router.attach("/health/json", HealthCheckResource.class); router.attach("/system/uptime/json", SystemUptimeResource.class); return router; }
@Override public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/module/all/json", ModuleLoaderResource.class); router.attach("/module/loaded/json", LoadedModuleLoaderResource.class); router.attach("/switch/{switchId}/role/json", SwitchRoleResource.class); router.attach("/switch/all/{statType}/json", AllSwitchStatisticsResource.class); router.attach("/switch/{switchId}/{statType}/json", SwitchStatisticsResource.class); router.attach("/controller/switches/json", ControllerSwitchesResource.class); router.attach("/counter/{counterTitle}/json", CounterResource.class); router.attach("/counter/{switchId}/{counterName}/json", SwitchCounterResource.class); router.attach("/counter/categories/{switchId}/{counterName}/{layer}/json", SwitchCounterCategoriesResource.class); router.attach("/memory/json", ControllerMemoryResource.class); router.attach("/packettrace/json", PacketTraceResource.class); router.attach("/storage/tables/json", StorageSourceTablesResource.class); router.attach("/controller/summary/json", ControllerSummaryResource.class); router.attach("/role/json", ControllerRoleResource.class); router.attach("/health/json", HealthCheckResource.class); router.attach("/system/uptime/json", SystemUptimeResource.class); return router; }
@Override public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/module/all/json", ModuleLoaderResource.class); router.attach("/module/loaded/json", LoadedModuleLoaderResource.class); // router.attach("/switch/{" + STR_SWITCH_ID + "}/role/json", SwitchRoleResource.class); router.attach("/switch/all/{" + STR_STAT_TYPE + "}/json", AllSwitchStatisticsResource.class); router.attach("/switch/{" + STR_SWITCH_ID + "}/{" + STR_STAT_TYPE + "}/json", SwitchStatisticsResource.class); router.attach("/controller/switches/json", ControllerSwitchesResource.class); router.attach("/counter/{" + STR_CTR_MODULE + "}/{" + STR_CTR_TITLE + "}/json", CounterResource.class); router.attach("/memory/json", ControllerMemoryResource.class); router.attach("/packettrace/json", PacketTraceResource.class); router.attach("/storage/tables/json", StorageSourceTablesResource.class); router.attach("/controller/summary/json", ControllerSummaryResource.class); router.attach("/role/json", ControllerRoleResource.class); router.attach("/health/json", HealthCheckResource.class); router.attach("/system/uptime/json", SystemUptimeResource.class); return router; }
@Override public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/module/all/json", ModuleLoaderResource.class); router.attach("/module/loaded/json", LoadedModuleLoaderResource.class); router.attach("/switch/{switchId}/role/json", SwitchRoleResource.class); router.attach("/switch/all/{statType}/json", AllSwitchStatisticsResource.class); router.attach("/switch/{switchId}/{statType}/json", SwitchStatisticsResource.class); //TODO replace {statsType} by groupStats router.attach("/switch/{switchId}/{statType}/{groupId}/json", SwitchStatisticsResource.class); router.attach("/switch/{switchId}/table/{tableType}/{statType}/json", SwitchStatisticsResource.class); router.attach("/controller/switches/json", ControllerSwitchesResource.class); router.attach("/memory/json", ControllerMemoryResource.class); router.attach("/health/json", HealthCheckResource.class); router.attach("/system/uptime/json", SystemUptimeResource.class); return router; }
@Override public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/module/all/json", ModuleLoaderResource.class); router.attach("/module/loaded/json", LoadedModuleLoaderResource.class); router.attach("/switch/{switchId}/role/json", SwitchRoleResource.class); router.attach("/switch/all/{statType}/json", AllSwitchStatisticsResource.class); router.attach("/switch/{switchId}/{statType}/json", SwitchStatisticsResource.class); router.attach("/controller/switches/json", ControllerSwitchesResource.class); router.attach("/counter/{counterTitle}/json", CounterResource.class); router.attach("/counter/{switchId}/{counterName}/json", SwitchCounterResource.class); router.attach("/counter/categories/{switchId}/{counterName}/{layer}/json", SwitchCounterCategoriesResource.class); router.attach("/memory/json", ControllerMemoryResource.class); router.attach("/packettrace/json", PacketTraceResource.class); // Get the last {count} events from the event histories router.attach("/event-history/topology-switch/{count}/json", EventHistoryTopologySwitchResource.class); router.attach("/event-history/topology-link/{count}/json", EventHistoryTopologyLinkResource.class); router.attach("/event-history/topology-cluster/{count}/json", EventHistoryTopologyClusterResource.class); router.attach("/storage/tables/json", StorageSourceTablesResource.class); router.attach("/controller/summary/json", ControllerSummaryResource.class); router.attach("/role/json", ControllerRoleResource.class); router.attach("/health/json", HealthCheckResource.class); router.attach("/system/uptime/json", SystemUptimeResource.class); return router; }
@Override public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/module/all/json", ModuleLoaderResource.class); router.attach("/module/loaded/json", LoadedModuleLoaderResource.class); router.attach("/switch/{switchId}/role/json", SwitchRoleResource.class); router.attach("/switch/all/{statType}/json", AllSwitchStatisticsResource.class); router.attach("/switch/{switchId}/{statType}/json", SwitchStatisticsResource.class); router.attach("/controller/switches/json", ControllerSwitchesResource.class); router.attach("/counter/{counterTitle}/json", CounterResource.class); router.attach("/counter/{switchId}/{counterName}/json", SwitchCounterResource.class); router.attach("/counter/categories/{switchId}/{counterName}/{layer}/json", SwitchCounterCategoriesResource.class); router.attach("/memory/json", ControllerMemoryResource.class); router.attach("/packettrace/json", PacketTraceResource.class); // Get the last {count} events from the event histories router.attach("/event-history/topology-switch/{count}/json", EventHistoryTopologySwitchResource.class); router.attach("/event-history/topology-link/{count}/json", EventHistoryTopologyLinkResource.class); router.attach("/event-history/topology-cluster/{count}/json", EventHistoryTopologyClusterResource.class); router.attach("/storage/tables/json", StorageSourceTablesResource.class); router.attach("/controller/summary/json", ControllerSummaryResource.class); router.attach("/role/json", ControllerRoleResource.class); router.attach("/health/json", HealthCheckResource.class); router.attach("/system/uptime/json", SystemUptimeResource.class); router.attach("/tools/enabled/json", ToolCheckResource.class); return router; }
@Override public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/module/all/json", ModuleLoaderResource.class); router.attach("/module/loaded/json", LoadedModuleLoaderResource.class); router.attach("/switch/{switchId}/role/json", SwitchRoleResource.class); router.attach("/switch/all/{statType}/json", AllSwitchStatisticsResource.class); router.attach("/switch/{switchId}/{statType}/json", SwitchStatisticsResource.class); router.attach("/controller/switches/json", ControllerSwitchesResource.class); router.attach("/counter/{counterTitle}/json", CounterResource.class); router.attach("/counter/{switchId}/{counterName}/json", SwitchCounterResource.class); router.attach("/counter/categories/{switchId}/{counterName}/{layer}/json", SwitchCounterCategoriesResource.class); router.attach("/memory/json", ControllerMemoryResource.class); router.attach("/packettrace/json", PacketTraceResource.class); // Get the last {count} events from the event histories router.attach("/event-history/topology-switch/{count}/json", EventHistoryTopologySwitchResource.class); router.attach("/event-history/topology-link/{count}/json", EventHistoryTopologyLinkResource.class); router.attach("/event-history/topology-cluster/{count}/json", EventHistoryTopologyClusterResource.class); router.attach("/storage/tables/json", StorageSourceTablesResource.class); router.attach("/controller/summary/json", ControllerSummaryResource.class); router.attach("/role/json", ControllerRoleResource.class); router.attach("/health/json", HealthCheckResource.class); router.attach("/system/uptime/json", SystemUptimeResource.class); router.attach("/debugcounter/{param}/json", DebugCounterGetResource.class); router.attach("/debugcounter/reset/{param}/json", DebugCounterResetResource.class); router.attach("/debugcounter/{moduleCounterName}/{state}/json", DebugCounterStateResource.class); return router; }