Package com.norconex.committer.solr
Enum Class SolrClientType
- All Implemented Interfaces:
Serializable,Comparable<SolrClientType>,Constable
Deprecated.
The legacy way of choosing how to connect to Solr. Names are those of the
SolrJ clients the Solr committer used to rely on. Each one now maps to a
SolrConnectionMode and a SolrHttpVersion.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Same asSolrConnectionMode.CLOUD.Deprecated.Same asHTTP.Deprecated.Same asHTTP2(documents are already sent in batches).Deprecated.Same asHTTP2, but always using HTTP/1.1.Deprecated.Same asHTTP2.Deprecated.Same asSolrConnectionMode.SINGLE_NODE.Deprecated.Same asLB_HTTP2, but always using HTTP/1.1.Deprecated.Same asSolrConnectionMode.LOAD_BALANCED. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the connection mode this type translates to.Deprecated.Gets the HTTP version this type translates to.static SolrClientTypeDeprecated.toString()Deprecated.static SolrClientTypeDeprecated.Returns the enum constant of this class with the specified name.static SolrClientType[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOUD
Deprecated.Same asSolrConnectionMode.CLOUD. -
HTTP2
Deprecated.Same asSolrConnectionMode.SINGLE_NODE. -
LB_HTTP2
Deprecated.Same asSolrConnectionMode.LOAD_BALANCED. -
CONCURRENT_UPDATE_HTTP2
Deprecated.Same asHTTP2(documents are already sent in batches). -
HTTP_JDK
Deprecated.Same asHTTP2. -
HTTP
Deprecated.Same asHTTP2, but always using HTTP/1.1. -
LB_HTTP
Deprecated.Same asLB_HTTP2, but always using HTTP/1.1. -
CONCURRENT_UPDATE
Deprecated.Same asHTTP.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
getConnectionMode
Deprecated.Gets the connection mode this type translates to.- Returns:
- connection mode
-
getHttpVersion
Deprecated.Gets the HTTP version this type translates to.- Returns:
- HTTP version
-
toString
Deprecated.- Overrides:
toStringin classEnum<SolrClientType>
-
of
Deprecated.
-
SolrCommitterConfig.setConnectionMode(com.norconex.committer.solr.SolrConnectionMode)andSolrCommitterConfig.setHttpVersion(com.norconex.committer.solr.SolrHttpVersion)instead.