[WIP] apps CLI changes for karaf upgrade
Change-Id: I283efc39c7d4f4b31344f1d2d0cdd2b98a60932d
diff --git a/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestLeaderCommand.java b/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestLeaderCommand.java
index aab47b0..16e426e 100644
--- a/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestLeaderCommand.java
+++ b/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestLeaderCommand.java
@@ -16,7 +16,7 @@
package org.onosproject.election.cli;
import org.onosproject.cluster.NodeId;
-import org.apache.karaf.shell.commands.Command;
+import org.apache.karaf.shell.api.action.Command;
import org.onosproject.cli.AbstractShellCommand;
import org.onosproject.cluster.LeadershipService;
@@ -31,7 +31,7 @@
private static final String ELECTION_APP = "org.onosproject.election";
@Override
- protected void execute() {
+ protected void doExecute() {
LeadershipService service = get(LeadershipService.class);
//print the current leader
diff --git a/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestRunCommand.java b/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestRunCommand.java
index 983b6d1..2850bdb 100644
--- a/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestRunCommand.java
+++ b/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestRunCommand.java
@@ -15,7 +15,7 @@
*/
package org.onosproject.election.cli;
-import org.apache.karaf.shell.commands.Command;
+import org.apache.karaf.shell.api.action.Command;
import org.onosproject.cli.AbstractShellCommand;
import org.onosproject.cluster.LeadershipService;
@@ -29,7 +29,7 @@
private static final String ELECTION_APP = "org.onosproject.election";
@Override
- protected void execute() {
+ protected void doExecute() {
LeadershipService service = get(LeadershipService.class);
service.runForLeadership(ELECTION_APP);
diff --git a/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestWithdrawCommand.java b/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestWithdrawCommand.java
index ee040ae..e854164 100644
--- a/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestWithdrawCommand.java
+++ b/apps/test/election/src/main/java/org/onosproject/election/cli/ElectionTestWithdrawCommand.java
@@ -15,7 +15,7 @@
*/
package org.onosproject.election.cli;
-import org.apache.karaf.shell.commands.Command;
+import org.apache.karaf.shell.api.action.Command;
import org.onosproject.cli.AbstractShellCommand;
import org.onosproject.cluster.LeadershipService;
@@ -30,7 +30,7 @@
private static final String ELECTION_APP = "org.onosproject.election";
@Override
- protected void execute() {
+ protected void doExecute() {
LeadershipService service = get(LeadershipService.class);
service.withdraw(ELECTION_APP);