Package com.norconex.committer.solr
Enum Class SolrClientType
- All Implemented Interfaces:
Serializable,Comparable<SolrClientType>,Constable
Supported
SolrClient types.
- Author:
- Pascal Essiembre
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor use with a SolrCloud cluster.Deprecated.A client using the HTTP/2 protocol (via Jetty), optimized for mass upload on a single node.Deprecated.useHTTP2instead.A client using the JDK’s built-in Http Client.For direct access to a single Solr node using the HTTP/2 protocol (via Jetty).Deprecated.useLB_HTTP2instead.A client using the HTTP/2 protocol (via Jetty), performing simple load-balancing as an alternative to an external load balancer. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.client.solrj.SolrClientstatic SolrClientTypetoString()static SolrClientTypeReturns the enum constant of this class with the specified name.static SolrClientType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOUD
For use with a SolrCloud cluster. Expects a comma-separated list of Zookeeper hosts. -
HTTP2
For direct access to a single Solr node using the HTTP/2 protocol (via Jetty). Ideal for local development or small setups. Expects a Solr URL. -
LB_HTTP2
A client using the HTTP/2 protocol (via Jetty), performing simple load-balancing as an alternative to an external load balancer. Expects two or more Solr node URLs (comma-separated). -
CONCURRENT_UPDATE_HTTP2
A client using the HTTP/2 protocol (via Jetty), optimized for mass upload on a single node. Not best for queries. Expects a Solr URL. -
HTTP_JDK
A client using the JDK’s built-in Http Client. Supports both Http/2 and Http/1.1. Supports async. -
HTTP
Deprecated.useHTTP2instead.For direct access to a single Solr node using the HTTP/1.x protocol. Ideal for local development or small setups. Expects a Solr URL. -
LB_HTTP
Deprecated.useLB_HTTP2instead.A client using the HTTP/1.x protocol, performing simple load-balancing as an alternative to an external load balancer. Expects two or more Solr node URLs (comma-separated). -
CONCURRENT_UPDATE
Deprecated.useCONCURRENT_UPDATE_HTTP2instead.A client using the HTTP/1.x protocol, optimized for mass upload on a single node. Not best for queries. Expects a Solr URL.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<SolrClientType>
-
create
-
of
-
CONCURRENT_UPDATE_HTTP2instead.