accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Marion (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1399) Pluggable commands for the shell
Date Thu, 16 May 2013 02:33:16 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659150#comment-13659150
] 

Dave Marion commented on ACCUMULO-1399:
---------------------------------------

Uploaded a patch so that folks can comment on what I am planning. To use, apply the patch
to trunk and build. Then, start up the shell and:

extensions -?
extensions -l  # should show nothing
extensions -e  # should show nothing
extensions -l  # should show one extension name
help           # should show a MyApp Extensions Command section
MyApp::debug   # should print out "This is a test"
extensions -d  # should show nothing
extensions -l  # should show nothing
MyApp::debug   # should tell you command doesn't exist
help           # should not show MyApp command section

TODO: Need to add the commands to the shell completer 
                
> Pluggable commands for the shell
> --------------------------------
>
>                 Key: ACCUMULO-1399
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1399
>             Project: Accumulo
>          Issue Type: New Feature
>          Components: shell
>            Reporter: Dave Marion
>            Assignee: Dave Marion
>            Priority: Minor
>             Fix For: 1.6.0
>
>         Attachments: ACCUMULO-1399-1.patch
>
>
> Proposing modification to the Shell to allow applications to create their own set of
commands. This might be accomplished using java.util.ServiceLoader or something like it. Specifically,
I'm thinking of a case where I have a create table command that is different than the one
provided by the Shell. In my case, my create table command may create one or more tables and
setup iterators on them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message