@Component public class SolrClusterComponent extends Object implements com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware
Modifier and Type | Class and Description |
---|---|
static class |
SolrClusterComponent.OverrideCollectionSolrClient
Class to remember the requested collection.
|
Constructor and Description |
---|
SolrClusterComponent(com.lucidworks.cloud.api.solr.SolrClusterDiscoveryClient solrClusterDiscoveryClient,
com.lucidworks.apollo.component.CollectionStore collectionStore,
com.lucidworks.apollo.component.CollectionComponent collectionComponent,
com.lucidworks.apollo.component.ConfigurationComponent configurationComponent,
com.lucidworks.apollo.component.AuthContextComponent authContextComponent,
com.lucidworks.apollo.component.CuratorComponent curatorComponent) |
Modifier and Type | Method and Description |
---|---|
void |
flushBuffers() |
com.lucidworks.apollo.common.auth.AuthContext |
getAuthContext(com.lucidworks.apollo.common.models.SearchCluster searchCluster) |
BufferingSolrServer |
getBufferingSolrServer(String collectionId) |
BufferingSolrServer |
getBufferingSolrServer(String collectionId,
Integer bufferSize,
Long flushInterval) |
org.apache.solr.client.solrj.impl.CloudSolrClient |
getCloudSolrClient(String cluster) |
com.lucidworks.apollo.common.models.Collection |
getCollection(String collectionId) |
int |
getCommitWithin(String collectionId) |
org.apache.curator.framework.CuratorFramework |
getCurator(com.lucidworks.apollo.common.models.SearchCluster searchCluster) |
com.lucidworks.apollo.partitioning.DocumentAssignmentStrategy |
getDocumentAssignmentStrategy(String collectionId) |
com.lucidworks.apollo.common.models.SearchCluster |
getSearchCluster(String collectionId) |
org.apache.solr.client.solrj.SolrClient |
getSolrClient(String collectionId) |
org.apache.solr.client.solrj.SolrClient |
getSolrServer(String collectionId)
Deprecated.
|
void |
onCollectionAdded(String collectionId) |
void |
onCollectionRemoved(String collectionId) |
void |
onCollectionUpdated(String collectionId) |
void |
shutdown() |
@Inject public SolrClusterComponent(com.lucidworks.cloud.api.solr.SolrClusterDiscoveryClient solrClusterDiscoveryClient, com.lucidworks.apollo.component.CollectionStore collectionStore, com.lucidworks.apollo.component.CollectionComponent collectionComponent, com.lucidworks.apollo.component.ConfigurationComponent configurationComponent, com.lucidworks.apollo.component.AuthContextComponent authContextComponent, com.lucidworks.apollo.component.CuratorComponent curatorComponent)
public org.apache.solr.client.solrj.SolrClient getSolrClient(String collectionId)
@Deprecated public org.apache.solr.client.solrj.SolrClient getSolrServer(String collectionId)
public org.apache.solr.client.solrj.impl.CloudSolrClient getCloudSolrClient(String cluster)
public BufferingSolrServer getBufferingSolrServer(String collectionId)
public BufferingSolrServer getBufferingSolrServer(String collectionId, Integer bufferSize, Long flushInterval)
public com.lucidworks.apollo.common.models.Collection getCollection(String collectionId)
public int getCommitWithin(String collectionId)
public com.lucidworks.apollo.common.models.SearchCluster getSearchCluster(String collectionId)
public com.lucidworks.apollo.common.auth.AuthContext getAuthContext(com.lucidworks.apollo.common.models.SearchCluster searchCluster)
public void flushBuffers()
@PreDestroy public void shutdown()
public com.lucidworks.apollo.partitioning.DocumentAssignmentStrategy getDocumentAssignmentStrategy(String collectionId)
public org.apache.curator.framework.CuratorFramework getCurator(com.lucidworks.apollo.common.models.SearchCluster searchCluster)
public void onCollectionRemoved(String collectionId)
onCollectionRemoved
in interface com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware
public void onCollectionAdded(String collectionId)
onCollectionAdded
in interface com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware
public void onCollectionUpdated(String collectionId)
onCollectionUpdated
in interface com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware