Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 72217 invoked from network); 22 Apr 2009 13:24:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 13:24:11 -0000 Received: (qmail 80507 invoked by uid 500); 22 Apr 2009 13:24:11 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 80424 invoked by uid 500); 22 Apr 2009 13:24:11 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 80413 invoked by uid 99); 22 Apr 2009 13:24:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 13:24:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 13:24:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C48C234C041 for ; Wed, 22 Apr 2009 06:23:47 -0700 (PDT) Message-ID: <1554076328.1240406627507.JavaMail.jira@brutus> Date: Wed, 22 Apr 2009 06:23:47 -0700 (PDT) From: "Shalin Shekhar Mangar (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Updated: (SOLR-1106) Pluggable CoreAdminHandler (Action ) architecture that allows for custom handler access to CoreContainer / request-response In-Reply-To: <1926483270.1239209412995.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar updated SOLR-1106: ---------------------------------------- Attachment: SOLR-1106.patch Thanks Kay, this looks good. I've made the following changes over your last patch # Re-formatted code to Lucene/Solr coding style. I know this is frowned upon for changes to existing code but CoreAdminHandler was the only place using a non-standard style of brace positioning and variable names. # Made the CoreContainer instance protected # Removed the CoreContainer parameter to all the action methods since it is an instance variable # Removed the final keyword from variable/parameter definitions. That is just noise in this context, isn't it? I think this is ready to commit. I'll wait for a day for any feedback that others may have. > Pluggable CoreAdminHandler (Action ) architecture that allows for custom handler access to CoreContainer / request-response > ----------------------------------------------------------------------------------------------------------------------------- > > Key: SOLR-1106 > URL: https://issues.apache.org/jira/browse/SOLR-1106 > Project: Solr > Issue Type: New Feature > Components: search > Environment: Java 5, Tomcat 6 > Reporter: Kay Kay > Assignee: Shalin Shekhar Mangar > Fix For: 1.4 > > Attachments: SOLR-1106.patch, SOLR-1106.patch, SOLR-1106.patch, SOLR-1106.patch, SOLR-1106.patch > > Original Estimate: 3h > Remaining Estimate: 3h > > Currently there are certain default actions implemented in CoreAdminHandler ( CREATE , SWAP, RELOAD , ALIAS etc.) . > For the purpose of in-house monitoring tools that needs to interact with multiple cores at a given solr instance - we need custom handlers that has access to CoreContainer and the req, resp of the same. > So - the proposed way of injecting handlers is as follows. > In solr.xml - we add a new schema - > > > > > > > New abstract class - CoreAdminActionRequestHandler added - that com.mydomain.myclass would need to inherit from. > Following action handlers registered by default - > registerCustomAdminHandler("create", new AdminCreateActionRequestHandler()); > registerCustomAdminHandler("rename", new AdminRenameActionRequestHandler()); > registerCustomAdminHandler("alias", new AdminAliasActionRequestHandler()); > registerCustomAdminHandler("unload", new AdminUnloadActionRequestHandler()); > registerCustomAdminHandler("status", new AdminStatusActionRequestHandler()); > registerCustomAdminHandler("persist", new AdminPersistActionRequestHandler()); > registerCustomAdminHandler("reload", new AdminReloadActionRequestHandler()); > registerCustomAdminHandler("swap", new AdminSwapActionRequestHandler()); > Trying to register a handler with one that already exists would result in an error ( Hence - the above mentioned defaults would not be overridden). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.