@References(value=@Reference(name="solrServerConfigurationProvider",referenceInterface=SolrServerConfigurationProvider.class,cardinality=MANDATORY_MULTIPLE,policy=DYNAMIC,bind="bindSolrServerConfigurationProvider",unbind="unbindSolrServerConfigurationProvider",updated="updatedSolrServerConfigurationProvider")) @Service(value=SolrServerProvider.class) public class SolrServerProviderService extends Object implements SolrServerProvider
SolrServerProvider| Constructor and Description |
|---|
SolrServerProviderService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
protected void |
bindSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider,
Map<String,Object> properties) |
void |
close() |
protected void |
deactivate() |
org.apache.solr.client.solrj.SolrServer |
getIndexingSolrServer()
provides an already initialized
SolrServer specifically configured to be
used for indexing. |
org.apache.solr.client.solrj.SolrServer |
getSearchingSolrServer()
provides an already initialized
SolrServer specifically configured to be
used for searching. |
org.apache.solr.client.solrj.SolrServer |
getSolrServer()
provides an already initialized
SolrServer to be used for either searching or
indexing, or both. |
protected void |
unbindSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider,
Map<String,Object> properties) |
protected void |
updatedSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider,
Map<String,Object> properties) |
@Activate
protected void activate(org.osgi.service.component.ComponentContext context)
throws Exception
Exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected void bindSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider, Map<String,Object> properties)
protected void unbindSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider, Map<String,Object> properties)
protected void updatedSolrServerConfigurationProvider(SolrServerConfigurationProvider solrServerConfigurationProvider, Map<String,Object> properties)
@CheckForNull public org.apache.solr.client.solrj.SolrServer getSolrServer() throws Exception
SolrServerProviderSolrServer to be used for either searching or
indexing, or both.getSolrServer in interface SolrServerProviderSolrServer instanceException - if anything goes wrong while initializing the SolrServer@CheckForNull public org.apache.solr.client.solrj.SolrServer getIndexingSolrServer() throws Exception
SolrServerProviderSolrServer specifically configured to be
used for indexing.getIndexingSolrServer in interface SolrServerProviderSolrServer instanceException - if anything goes wrong while initializing the SolrServer@CheckForNull public org.apache.solr.client.solrj.SolrServer getSearchingSolrServer() throws Exception
SolrServerProviderSolrServer specifically configured to be
used for searching.getSearchingSolrServer in interface SolrServerProviderSolrServer instanceException - if anything goes wrong while initializing the SolrServerCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.