Package com.norconex.committer.solr
Enum Class SolrConnectionMode
- All Implemented Interfaces:
Serializable,Comparable<SolrConnectionMode>,Constable
How the Solr committer connects to the configured Solr nodes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSolr node URLs of a SolrCloud cluster, each ending with the collection name.Several Solr node URLs.A single Solr URL. -
Method Summary
Modifier and TypeMethodDescriptionstatic SolrConnectionModeReturns the enum constant of this class with the specified name.static SolrConnectionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE_NODE
A single Solr URL. -
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
Solr node URLs of a SolrCloud cluster, each ending with the collection name. The nodes hosting the collection are discovered over HTTP (Collections APICLUSTERSTATUS) 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
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
-