SMILA 1.0 API documentation

org.eclipse.smila.solr.server
Class SolrServers

java.lang.Object
  extended by org.eclipse.smila.solr.server.SolrServers
Direct Known Subclasses:
SolrEmbeddedServers, SolrHttpServers

public abstract class SolrServers
extends java.lang.Object

manages one SolrServer instance per core.


Constructor Summary
SolrServers()
           
 
Method Summary
protected abstract  SolrServer createServer(java.lang.String coreName)
          create correct SolrServer instance for the given core.
abstract  SolrServer getAdminServer()
          create a SolrServer for admin operations not related to a single core (e.g. getting core names).
 SolrServer getSolrServer(java.lang.String coreName)
          create (if necessary), cache and return a SolrServer for the given core.
 void removeAllServers()
          remove all SolrServers.
 void removeSolrServer(java.lang.String coreName)
          remove a SolrServer that is not needed anymore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrServers

public SolrServers()
Method Detail

getAdminServer

public abstract SolrServer getAdminServer()
                                   throws SolrServerException
create a SolrServer for admin operations not related to a single core (e.g. getting core names). This server is not cached.

Throws:
SolrServerException

getSolrServer

public SolrServer getSolrServer(java.lang.String coreName)
                         throws SolrServerException
create (if necessary), cache and return a SolrServer for the given core.

Throws:
SolrServerException

removeSolrServer

public void removeSolrServer(java.lang.String coreName)
remove a SolrServer that is not needed anymore.


removeAllServers

public void removeAllServers()
remove all SolrServers.


createServer

protected abstract SolrServer createServer(java.lang.String coreName)
                                    throws SolrServerException
create correct SolrServer instance for the given core.

Throws:
SolrServerException

SMILA 1.0 API documentation