1 package org.opendaylight.controller.xsql;
3 import org.apache.karaf.shell.commands.Argument;
4 import org.apache.karaf.shell.commands.Command;
5 import org.apache.karaf.shell.commands.Option;
6 import org.apache.karaf.shell.console.OsgiCommandSupport;
7 import org.opendaylight.controller.md.sal.dom.xsql.XSQLAdapter;
9 @Command(scope = "odl", name = "xsql", description = "XSQL Karaf Command")
10 public class xsql extends OsgiCommandSupport {
12 @Option(name = "-o", aliases = { "--option" }, description = "An option to the command", required = false, multiValued = false)
13 private String option;
15 @Argument(name = "argument", description = "Argument to the command", required = false, multiValued = false)
16 private String argument;
18 protected Object doExecute() throws Exception {
19 XSQLAdapter.getInstance().processCommand(new StringBuffer(argument),