Enum Class SolrConnectionMode

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

public enum SolrConnectionMode extends Enum<SolrConnectionMode>
How the Solr committer connects to the configured Solr nodes.
  • Enum Constant Details

    • SINGLE_NODE

      public static final SolrConnectionMode SINGLE_NODE
      A single Solr URL.
    • LOAD_BALANCED

      public static final SolrConnectionMode LOAD_BALANCED
      Several Solr node URLs. Updates are spread across nodes, and a failing node is set aside for a while, the request being sent to another one.
    • CLOUD

      public static final SolrConnectionMode CLOUD
      Solr node URLs of a SolrCloud cluster, each ending with the collection name. The nodes hosting the collection are discovered over HTTP (Collections API CLUSTERSTATUS) and refreshed periodically. ZooKeeper does not have to be reachable. If the cluster state cannot be obtained, or discovered nodes are not reachable, the configured nodes are used.
  • Method Details

    • values

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