Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02BC59D18 for ; Thu, 16 May 2013 02:35:17 +0000 (UTC) Received: (qmail 29105 invoked by uid 500); 16 May 2013 02:35:16 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 29078 invoked by uid 500); 16 May 2013 02:35:16 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 29069 invoked by uid 99); 16 May 2013 02:35:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 02:35:16 +0000 Date: Thu, 16 May 2013 02:35:16 +0000 (UTC) From: "Dave Marion (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ACCUMULO-1399) Pluggable commands for the shell MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659150#comment-13659150 ] Dave Marion edited comment on ACCUMULO-1399 at 5/16/13 2:33 AM: ---------------------------------------------------------------- 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, ensure license on all files. was (Author: dlmarion): 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