Enum Class SolrClientType

java.lang.Object
java.lang.Enum<SolrClientType>
com.norconex.committer.solr.SolrClientType
All Implemented Interfaces:
Serializable, Comparable<SolrClientType>, Constable

public enum SolrClientType extends Enum<SolrClientType>
Supported SolrClient types.
Author:
Pascal Essiembre
  • Enum Constant Details

    • CLOUD

      public static final SolrClientType CLOUD
      For use with a SolrCloud cluster. Expects a comma-separated list of Zookeeper hosts.
    • HTTP2

      public static final SolrClientType 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

      public static final SolrClientType 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

      public static final SolrClientType 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

      public static final SolrClientType HTTP_JDK
      A client using the JDK’s built-in Http Client. Supports both Http/2 and Http/1.1. Supports async.
    • HTTP

      @Deprecated(since="4.0.0") public static final SolrClientType HTTP
      Deprecated.
      use HTTP2 instead.
      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(since="4.0.0") public static final SolrClientType LB_HTTP
      Deprecated.
      use LB_HTTP2 instead.
      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(since="4.0.0") public static final SolrClientType CONCURRENT_UPDATE
      Deprecated.
      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

      public static SolrClientType[] 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

      public static SolrClientType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SolrClientType>
    • create

      public org.apache.solr.client.solrj.SolrClient create(String solrURL)
    • of

      public static SolrClientType of(String type)