[TSDR-60] TSC-97 ODL projects need to update their Karaf CLI code Created: 30/May/18  Updated: 07/Jun/18  Resolved: 07/Jun/18

Status: Resolved
Project: tsdr
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Scott Melton Assignee: Scott Melton
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Seen in Persistence-h2, review the link for other usage.

TSC-97

The way to integrate CLI commands has changed, as detailed in https://karaf.apache.org/manual/latest/#_console_3 . All ODL projects need to migrate to this.
Litmus:

  • org.apache.karaf.shell.commands.Command
  • org.apache.karaf.shell.commands.Option
  • org.apache.karaf.shell.console.AbstractAction
  • org.apache.karaf.shell.table.ShellTable

should not be used

 



 Comments   
Comment by Scott Melton [ 07/Jun/18 ]

Persistence-h2 is the only place where the org.apache.karaf.shell.commands.Command is still used.

Needs to be replaced with import org.apache.karaf.shell.api.action.Command.

H2 was superceded by HSQLDB because of a licensing issue. Remove the code instead of fixing.

Remove H2 from code base, downstream can pull Oxygen if needed.

We identified other unused code, like the controller metrics monitor. We need to identify this code, evaluate and remove if not needed. Use separate patches for each removal. Review the External interface.

 Follow this removal and other code cleanup on TSDR-67.

Generated at Wed Feb 07 20:46:17 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.