Package com.lucidworks.cloud.api.solr
Class SolrClusterComponent
- java.lang.Object
- 
- com.lucidworks.cloud.api.solr.SolrClusterComponent
 
- 
- All Implemented Interfaces:
- com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware
 
 @EnableConfigurationProperties(com.lucidworks.apollo.config.ConfigurationComponent.class) public class SolrClusterComponent extends java.lang.Object implements com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAwareProvides access to the Solr servers associated with a given collectionId.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSolrClusterComponent.OverrideCollectionSolrClientClass to remember the requested collection.
 - 
Constructor SummaryConstructors Constructor Description SolrClusterComponent(com.lucidworks.cloud.api.solr.SolrClusterDiscoveryClient solrClusterDiscoveryClient, com.lucidworks.apollo.component.CollectionStore collectionStore, com.lucidworks.apollo.component.CollectionComponent collectionComponent, com.lucidworks.apollo.config.ConfigurationComponent configurationComponent, org.apache.curator.framework.CuratorFramework curatorComponent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidflushBuffers()BufferingSolrServergetBufferingSolrServer(java.lang.String collectionId)BufferingSolrServergetBufferingSolrServer(java.lang.String collectionId, java.lang.Integer bufferSize, java.lang.Long flushInterval)org.apache.solr.client.solrj.impl.CloudSolrClientgetCloudSolrClient(java.lang.String cluster)com.lucidworks.apollo.common.models.CollectiongetCollection(java.lang.String collectionId)intgetCommitWithin(java.lang.String collectionId)org.apache.curator.framework.CuratorFrameworkgetCurator(com.lucidworks.apollo.common.models.SearchCluster searchCluster)com.lucidworks.apollo.partitioning.DocumentAssignmentStrategygetDocumentAssignmentStrategy(java.lang.String collectionId)com.lucidworks.apollo.common.models.SearchClustergetSearchCluster(java.lang.String collectionId)org.apache.solr.client.solrj.SolrClientgetSolrClient(java.lang.String collectionId)org.apache.solr.client.solrj.SolrClientgetSolrServer(java.lang.String collectionId)Deprecated.voidonCollectionAdded(java.lang.String collectionId)voidonCollectionRemoved(java.lang.String collectionId)voidonCollectionUpdated(java.lang.String collectionId)voidshutdown()
 
- 
- 
- 
Constructor Detail- 
SolrClusterComponent@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.config.ConfigurationComponent configurationComponent, org.apache.curator.framework.CuratorFramework curatorComponent)
 
- 
 - 
Method Detail- 
getSolrClientpublic org.apache.solr.client.solrj.SolrClient getSolrClient(java.lang.String collectionId) 
 - 
getSolrServer@Deprecated public org.apache.solr.client.solrj.SolrClient getSolrServer(java.lang.String collectionId) Deprecated.Exists only for javascript back-compat reasons, see APOLLO-29567
 - 
getCloudSolrClientpublic org.apache.solr.client.solrj.impl.CloudSolrClient getCloudSolrClient(java.lang.String cluster) 
 - 
getBufferingSolrServerpublic BufferingSolrServer getBufferingSolrServer(java.lang.String collectionId) 
 - 
getBufferingSolrServerpublic BufferingSolrServer getBufferingSolrServer(java.lang.String collectionId, java.lang.Integer bufferSize, java.lang.Long flushInterval) 
 - 
getCollectionpublic com.lucidworks.apollo.common.models.Collection getCollection(java.lang.String collectionId) 
 - 
getCommitWithinpublic int getCommitWithin(java.lang.String collectionId) 
 - 
getSearchClusterpublic com.lucidworks.apollo.common.models.SearchCluster getSearchCluster(java.lang.String collectionId) 
 - 
flushBufferspublic void flushBuffers() 
 - 
shutdown@PreDestroy public void shutdown() 
 - 
getDocumentAssignmentStrategypublic com.lucidworks.apollo.partitioning.DocumentAssignmentStrategy getDocumentAssignmentStrategy(java.lang.String collectionId) 
 - 
getCuratorpublic org.apache.curator.framework.CuratorFramework getCurator(com.lucidworks.apollo.common.models.SearchCluster searchCluster) 
 - 
onCollectionRemovedpublic void onCollectionRemoved(java.lang.String collectionId) - Specified by:
- onCollectionRemovedin interface- com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware
 
 - 
onCollectionAddedpublic void onCollectionAdded(java.lang.String collectionId) - Specified by:
- onCollectionAddedin interface- com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware
 
 - 
onCollectionUpdatedpublic void onCollectionUpdated(java.lang.String collectionId) - Specified by:
- onCollectionUpdatedin interface- com.lucidworks.apollo.component.CollectionComponent.CollectionChangeAware
 
 
- 
 
-