Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 18059 invoked from network); 18 Apr 2009 05:53:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2009 05:53:44 -0000 Received: (qmail 65270 invoked by uid 500); 18 Apr 2009 05:53:43 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 65187 invoked by uid 500); 18 Apr 2009 05:53:43 -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 65177 invoked by uid 99); 18 Apr 2009 05:53:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Apr 2009 05:53:43 +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; Sat, 18 Apr 2009 05:53:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DF9AA234C004 for ; Fri, 17 Apr 2009 22:53:14 -0700 (PDT) Message-ID: <374077816.1240033994901.JavaMail.jira@brutus> Date: Fri, 17 Apr 2009 22:53:14 -0700 (PDT) From: "Noble Paul (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12700424#action_12700424 ] Noble Paul commented on SOLR-1106: ---------------------------------- to hoss' comment on the list http://markmail.org/message/s7mcbtaskngr74bd The commands such as create/load/unload etc can only be done by the CoreAdminHandler. So it is not really possible to achieve this as a RequestHandler. Take our usecase where we start with a blank slate ( zero cores) and we keep adding cores . In this case there is no core in the first place to attach a RequestHandler bq.we might end up adding one more method to be overridden. Let me know what you feel about this. As I see it , there will be very few users overriding the CoreAdminHandler . We do it and we have a custom build of Solr for that. With this issue fixed I may be able to plugin my custom CoreAdminHandler. having 7 -8 methods to be overridden is a good idea. If there are new commands we may have new methods > 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 > Environment: Java 5, Tomcat 6 > Reporter: Kay Kay > Attachments: 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.