lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <>
Subject [jira] [Created] (SOLR-2638) A CoreContainer Plugin interface to create Container level Services
Date Wed, 06 Jul 2011 09:37:16 GMT
A CoreContainer Plugin interface to create Container level Services

                 Key: SOLR-2638
             Project: Solr
          Issue Type: New Feature
          Components: multicore
            Reporter: Noble Paul
            Assignee: Noble Paul

It can help register services such as Zookeeper .


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(){}


It may be specified in solr.xml as

  <plugin name="zk" class="solr.ZookeeperService" param1="val1" param2="val2" zkClientTimeout="8000"/>

  <cores adminPath="/admin/cores" defaultCoreName="collection1" host="" hostPort="${hostPort:8983}"
hostContext="solr" >
    <core name="collection1" shard="${shard:}" collection="${collection:collection1}" config="${solrconfig:solrconfig.xml}"

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message