Package com.norconex.committer.solr
Enum Class SolrClientType
- All Implemented Interfaces:
Serializable,Comparable<SolrClientType>,Constable
Supported
SolrClient types.
- Since:
- 2.4.0
- 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 ConstantDescriptionClient for use with a SolrCloud cluster via ZooKeeper hosts.Optimized for high-volume upserts to a single Solr node.HTTP/2 variant ofCONCURRENT_UPDATE(experimental).Direct access to a single Solr node via HTTP.HTTP/2 variant ofHTTP(experimental).Simple load-balancing across multiple Solr nodes via HTTP.HTTP/2 variant ofLB_HTTP(experimental). -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.client.solrj.SolrClientCreates aSolrClientfor the given Solr URL.static SolrClientTypeReturns theSolrClientTypematching the given type string (case-insensitive), ornullif none match.toString()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
-
HTTP
Direct access to a single Solr node via HTTP. Default client type. -
LB_HTTP
Simple load-balancing across multiple Solr nodes via HTTP. -
CONCURRENT_UPDATE
Optimized for high-volume upserts to a single Solr node. -
CLOUD
Client for use with a SolrCloud cluster via ZooKeeper hosts. -
HTTP2
HTTP/2 variant ofHTTP(experimental). -
LB_HTTP2
HTTP/2 variant ofLB_HTTP(experimental). -
CONCURRENT_UPDATE_HTTP2
HTTP/2 variant ofCONCURRENT_UPDATE(experimental).
-
-
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
Creates aSolrClientfor the given Solr URL.- Parameters:
solrURL- the Solr URL (or comma-separated URLs where applicable)- Returns:
- a new SolrClient instance
-
of
Returns theSolrClientTypematching the given type string (case-insensitive), ornullif none match.- Parameters:
type- the client type name (e.g. "HttpSolrClient")- Returns:
- matching SolrClientType, or
null
-