tom | f110fff | 2014-09-26 00:38:18 -0700 | [diff] [blame] | 1 | package org.onlab.onos.foo; |
| 2 | |
| 3 | import org.apache.karaf.shell.commands.Command; |
| 4 | import org.onlab.onos.cli.AbstractShellCommand; |
| 5 | |
| 6 | import static org.onlab.onos.foo.IOLoopTestServer.startStandalone; |
| 7 | |
| 8 | |
| 9 | /** |
| 10 | * Starts the test IO loop server. |
| 11 | */ |
| 12 | @Command(scope = "onos", name = "test-io-server", |
| 13 | description = "Starts the test IO loop server") |
| 14 | public class TestIOServerCommand extends AbstractShellCommand { |
| 15 | |
| 16 | @Override |
| 17 | protected void execute() { |
| 18 | try { |
| 19 | startStandalone(new String[]{}); |
| 20 | } catch (Exception e) { |
| 21 | error("Unable to start server %s", e); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | } |