You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2014/09/06 01:14:29 UTC
[jira] [Closed] (SOLR-2638) A CoreContainer Plugin interface to
create Container level Services
[ https://issues.apache.org/jira/browse/SOLR-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noble Paul closed SOLR-2638.
----------------------------
Resolution: Won't Fix
> A CoreContainer Plugin interface to create Container level Services
> -------------------------------------------------------------------
>
> Key: SOLR-2638
> URL: https://issues.apache.org/jira/browse/SOLR-2638
> Project: Solr
> Issue Type: New Feature
> Components: multicore
> Reporter: Noble Paul
> Assignee: Noble Paul
> Attachments: SOLR-2638.patch, SOLR-2638.patch
>
>
> It can help register services such as Zookeeper .
> interface
> {code:java}
> public abstract class ContainerPlugin {
> /**Called before initializing any core.
> * @param container
> * @param attrs
> */
> public abstract void init(CoreContainer container, Map<String,String> attrs);
> /**Callback after all cores are initialized
> */
> public void postInit(){}
> /**Callback after each core is created, but before registration
> * @param core
> */
> public void onCoreCreate(SolrCore core){}
> /**Callback for server shutdown
> */
> public void shutdown(){}
> }
> {code}
> It may be specified in solr.xml as
> {code:xml}
> <solr>
> <plugin name="zk" class="solr.ZookeeperService" param1="val1" param2="val2" zkClientTimeout="8000"/>
> <cores adminPath="/admin/cores" defaultCoreName="collection1" host="127.0.0.1" hostPort="${hostPort:8983}" hostContext="solr" >
> <core name="collection1" shard="${shard:}" collection="${collection:collection1}" config="${solrconfig:solrconfig.xml}" instanceDir="."/>
> </cores>
> </solr>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org