Committed by
Gerrit Code Review
Rename Meter,AddMeter,GetFlowStatistics,GetStatistics
Change-Id: Ifdc7fb422f7e2bb4135ab24bae0f8d9541432e0c
Showing
5 changed files
with
10 additions
and
10 deletions
... | @@ -30,11 +30,11 @@ import org.onosproject.net.meter.MeterService; | ... | @@ -30,11 +30,11 @@ import org.onosproject.net.meter.MeterService; |
30 | import java.util.Collections; | 30 | import java.util.Collections; |
31 | 31 | ||
32 | /** | 32 | /** |
33 | - * Add a meter. | 33 | + * Add a meter to a device. |
34 | */ | 34 | */ |
35 | @Command(scope = "onos", name = "add-meter", | 35 | @Command(scope = "onos", name = "add-meter", |
36 | description = "Adds a meter to a device (currently for testing)") | 36 | description = "Adds a meter to a device (currently for testing)") |
37 | -public class AddMeter extends AbstractShellCommand { | 37 | +public class AddMeterCommand extends AbstractShellCommand { |
38 | 38 | ||
39 | @Argument(index = 0, name = "uri", description = "Device ID", | 39 | @Argument(index = 0, name = "uri", description = "Device ID", |
40 | required = true, multiValued = false) | 40 | required = true, multiValued = false) | ... | ... |
... | @@ -43,7 +43,7 @@ import static org.onosproject.net.PortNumber.portNumber; | ... | @@ -43,7 +43,7 @@ import static org.onosproject.net.PortNumber.portNumber; |
43 | */ | 43 | */ |
44 | @Command(scope = "onos", name = "get-flow-stats", | 44 | @Command(scope = "onos", name = "get-flow-stats", |
45 | description = "Fetches flow stats for a connection point with given flow type and instruction type") | 45 | description = "Fetches flow stats for a connection point with given flow type and instruction type") |
46 | -public class GetFlowStatistics extends AbstractShellCommand { | 46 | +public class GetFlowStatisticsCommand extends AbstractShellCommand { |
47 | @Argument(index = 0, name = "devicePort", | 47 | @Argument(index = 0, name = "devicePort", |
48 | description = "Device[/Port] connectPoint Description", | 48 | description = "Device[/Port] connectPoint Description", |
49 | required = true, multiValued = false) | 49 | required = true, multiValued = false) | ... | ... |
... | @@ -34,7 +34,7 @@ import static org.onosproject.net.PortNumber.portNumber; | ... | @@ -34,7 +34,7 @@ import static org.onosproject.net.PortNumber.portNumber; |
34 | */ | 34 | */ |
35 | @Command(scope = "onos", name = "get-stats", | 35 | @Command(scope = "onos", name = "get-stats", |
36 | description = "Fetches stats for a connection point") | 36 | description = "Fetches stats for a connection point") |
37 | -public class GetStatistics extends AbstractShellCommand { | 37 | +public class GetStatisticsCommand extends AbstractShellCommand { |
38 | 38 | ||
39 | @Argument(index = 0, name = "connectPoint", | 39 | @Argument(index = 0, name = "connectPoint", |
40 | description = "Device/Port Description", | 40 | description = "Device/Port Description", | ... | ... |
... | @@ -26,11 +26,11 @@ import org.onosproject.net.meter.MeterService; | ... | @@ -26,11 +26,11 @@ import org.onosproject.net.meter.MeterService; |
26 | import java.util.Collection; | 26 | import java.util.Collection; |
27 | 27 | ||
28 | /** | 28 | /** |
29 | - * Add a meter. | 29 | + * Lists all meters. |
30 | */ | 30 | */ |
31 | @Command(scope = "onos", name = "meters", | 31 | @Command(scope = "onos", name = "meters", |
32 | description = "Shows meters") | 32 | description = "Shows meters") |
33 | -public class Meters extends AbstractShellCommand { | 33 | +public class MetersListCommand extends AbstractShellCommand { |
34 | 34 | ||
35 | @Argument(index = 0, name = "uri", description = "Device ID", | 35 | @Argument(index = 0, name = "uri", description = "Device ID", |
36 | required = false, multiValued = false) | 36 | required = false, multiValued = false) | ... | ... |
... | @@ -186,13 +186,13 @@ | ... | @@ -186,13 +186,13 @@ |
186 | </completers> | 186 | </completers> |
187 | </command> | 187 | </command> |
188 | <command> | 188 | <command> |
189 | - <action class="org.onosproject.cli.net.AddMeter"/> | 189 | + <action class="org.onosproject.cli.net.AddMeterCommand"/> |
190 | <completers> | 190 | <completers> |
191 | <ref component-id="deviceIdCompleter"/> | 191 | <ref component-id="deviceIdCompleter"/> |
192 | </completers> | 192 | </completers> |
193 | </command> | 193 | </command> |
194 | <command> | 194 | <command> |
195 | - <action class="org.onosproject.cli.net.Meters"/> | 195 | + <action class="org.onosproject.cli.net.MetersListCommand"/> |
196 | <completers> | 196 | <completers> |
197 | <ref component-id="deviceIdCompleter"/> | 197 | <ref component-id="deviceIdCompleter"/> |
198 | </completers> | 198 | </completers> |
... | @@ -298,13 +298,13 @@ | ... | @@ -298,13 +298,13 @@ |
298 | </optional-completers> | 298 | </optional-completers> |
299 | </command> | 299 | </command> |
300 | <command> | 300 | <command> |
301 | - <action class="org.onosproject.cli.net.GetStatistics"/> | 301 | + <action class="org.onosproject.cli.net.GetStatisticsCommand"/> |
302 | <completers> | 302 | <completers> |
303 | <ref component-id="connectPointCompleter"/> | 303 | <ref component-id="connectPointCompleter"/> |
304 | </completers> | 304 | </completers> |
305 | </command> | 305 | </command> |
306 | <command> | 306 | <command> |
307 | - <action class="org.onosproject.cli.net.GetFlowStatistics"/> | 307 | + <action class="org.onosproject.cli.net.GetFlowStatisticsCommand"/> |
308 | <completers> | 308 | <completers> |
309 | <ref component-id="deviceIdCompleter"/> | 309 | <ref component-id="deviceIdCompleter"/> |
310 | </completers> | 310 | </completers> | ... | ... |
-
Please register or login to post a comment