@Component public class SolrClusterComponent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SolrClusterComponent.OverrideCollectionSolrClient
Class to remember the requested collection.
|
Constructor and Description |
---|
SolrClusterComponent(SolrClusterDiscoveryClient solrClusterDiscoveryClient,
CollectionStore collectionStore,
CollectionComponent collectionComponent,
ConfigurationComponent configurationComponent,
AuthContextComponent authContextComponent,
CuratorComponent curatorComponent) |
Modifier and Type | Method and Description |
---|---|
void |
flushBuffers() |
AuthContext |
getAuthContext(SearchCluster searchCluster) |
BufferingSolrServer |
getBufferingSolrServer(String collectionId) |
BufferingSolrServer |
getBufferingSolrServer(String collectionId,
Integer bufferSize,
Long flushInterval) |
org.apache.solr.client.solrj.impl.CloudSolrClient |
getCloudSolrClient(String cluster) |
Collection |
getCollection(String collectionId) |
int |
getCommitWithin(String collectionId) |
org.apache.curator.framework.CuratorFramework |
getCurator(SearchCluster searchCluster) |
DocumentAssignmentStrategy |
getDocumentAssignmentStrategy(String collectionId) |
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(SolrClusterDiscoveryClient solrClusterDiscoveryClient, CollectionStore collectionStore, CollectionComponent collectionComponent, ConfigurationComponent configurationComponent, AuthContextComponent authContextComponent, 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 Collection getCollection(String collectionId)
public int getCommitWithin(String collectionId)
public SearchCluster getSearchCluster(String collectionId)
public AuthContext getAuthContext(SearchCluster searchCluster)
public void flushBuffers()
@PreDestroy public void shutdown()
public DocumentAssignmentStrategy getDocumentAssignmentStrategy(String collectionId)
public org.apache.curator.framework.CuratorFramework getCurator(SearchCluster searchCluster)
public void onCollectionRemoved(String collectionId)
public void onCollectionAdded(String collectionId)
public void onCollectionUpdated(String collectionId)