Package org.apache.camel.component.solr
Class SolrClientHandler
- java.lang.Object
-
- org.apache.camel.component.solr.SolrClientHandler
-
- Direct Known Subclasses:
SolrClientHandlerCloud
,SolrClientHandlerConcurrentUpdate
,SolrClientHandlerHttp
,SolrClientHandlerLbHttp
public abstract class SolrClientHandler extends Object
-
-
Field Summary
Fields Modifier and Type Field Description SolrConfiguration
solrConfiguration
-
Constructor Summary
Constructors Constructor Description SolrClientHandler(SolrConfiguration solrConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
getFirstUrlFromList()
static String
getSignature(SolrConfiguration solrConfiguration)
Signature defines parameters deciding whether or not to share the solrClient - sharing allowed: same signature - sharing not allowed: different signatureprotected abstract org.apache.solr.client.solrj.SolrClient
getSolrClient()
protected static org.apache.solr.client.solrj.SolrClient
getSolrClient(SolrConfiguration solrConfiguration)
protected static List<String>
getUrlListFrom(SolrConfiguration solrConfiguration)
protected static Optional<String>
getZkChrootFromUrl(String path)
static SolrConfiguration
initializeFor(String solrOperation, SolrConfiguration solrConfiguration)
Allows to override solrClient configuration based on processing solrOperationprotected static String
parseHostsFromUrl(String path, Optional<String> zkChroot)
-
-
-
Field Detail
-
solrConfiguration
public final SolrConfiguration solrConfiguration
-
-
Constructor Detail
-
SolrClientHandler
public SolrClientHandler(SolrConfiguration solrConfiguration)
-
-
Method Detail
-
getSolrClient
protected abstract org.apache.solr.client.solrj.SolrClient getSolrClient()
-
parseHostsFromUrl
protected static String parseHostsFromUrl(String path, Optional<String> zkChroot)
-
getFirstUrlFromList
protected String getFirstUrlFromList()
-
getUrlListFrom
protected static List<String> getUrlListFrom(SolrConfiguration solrConfiguration)
-
getSignature
public static String getSignature(SolrConfiguration solrConfiguration)
Signature defines parameters deciding whether or not to share the solrClient - sharing allowed: same signature - sharing not allowed: different signature
-
initializeFor
public static SolrConfiguration initializeFor(String solrOperation, SolrConfiguration solrConfiguration)
Allows to override solrClient configuration based on processing solrOperation
-
getSolrClient
protected static org.apache.solr.client.solrj.SolrClient getSolrClient(SolrConfiguration solrConfiguration)
-
-