Class BroadleafSolrProperties.ServerProperties
java.lang.Object
com.broadleafcommerce.search.provider.solr.autoconfigure.BroadleafSolrProperties.ServerProperties
- Enclosing class:
- BroadleafSolrProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe Zookeeper chroot, which represents the root path to the Zookeeper virtual file system for SolrCloud configuration.intIf using SolrCloud, this should be the value of the ZooKeeper client session timeout setting ('zkClientTimeout') in milliseconds.getHost()The host URL to connect to the Solr Server.Optional password to use for Basic Authentication along with the userName field for Solr.Optional user name to use for BasicAuth with Solr.inthashCode()booleanWhether or not the solr client automatic connection at startup should be suppressed.voidThe Zookeeper chroot, which represents the root path to the Zookeeper virtual file system for SolrCloud configuration.voidsetClientSessionTimeoutMillis(int clientSessionTimeoutMillis) If using SolrCloud, this should be the value of the ZooKeeper client session timeout setting ('zkClientTimeout') in milliseconds.voidThe host URL to connect to the Solr Server.voidsetPassword(String password) Optional password to use for Basic Authentication along with the userName field for Solr.voidsetSuppressSolrClientConnection(boolean suppressSolrClientConnection) Whether or not the solr client automatic connection at startup should be suppressed.voidsetUserName(String userName) Optional user name to use for BasicAuth with Solr.toString()
-
Constructor Details
-
ServerProperties
public ServerProperties()
-
-
Method Details
-
isSuppressSolrClientConnection
public boolean isSuppressSolrClientConnection()Whether or not the solr client automatic connection at startup should be suppressed. Default is false. -
getHost
The host URL to connect to the Solr Server.If this is a Solr Cloud implementation, this should be a comma separated list of ZK nodes.
Ignored if embedded is true.
- Returns:
- The host URL to connect to the Solr Server
-
getChroot
The Zookeeper chroot, which represents the root path to the Zookeeper virtual file system for SolrCloud configuration.- Returns:
- The Zookeeper chroot
-
getUserName
Optional user name to use for BasicAuth with Solr. Note that this user must have permissions for all access that is expected by the application using this lib. Query, write, admin, etc. are all types of access that can be granted. See additional Solr documentation related to Basic Authentication and other security concerns.- Returns:
- Optional user name to use for BasicAuth with Solr
-
getPassword
Optional password to use for Basic Authentication along with the userName field for Solr.- Returns:
- Optional password to use for BasicAuth with Solr
-
getClientSessionTimeoutMillis
public int getClientSessionTimeoutMillis()If using SolrCloud, this should be the value of the ZooKeeper client session timeout setting ('zkClientTimeout') in milliseconds. Note that the ZK server may not honor this value if it exceeds the server-side configured maximum ('maxSessionTimeout'). -
setSuppressSolrClientConnection
public void setSuppressSolrClientConnection(boolean suppressSolrClientConnection) Whether or not the solr client automatic connection at startup should be suppressed. Default is false. -
setHost
The host URL to connect to the Solr Server.If this is a Solr Cloud implementation, this should be a comma separated list of ZK nodes.
Ignored if embedded is true.
- Parameters:
host- The host URL to connect to the Solr Server
-
setChroot
The Zookeeper chroot, which represents the root path to the Zookeeper virtual file system for SolrCloud configuration.- Parameters:
chroot- The Zookeeper chroot
-
setUserName
Optional user name to use for BasicAuth with Solr. Note that this user must have permissions for all access that is expected by the application using this lib. Query, write, admin, etc. are all types of access that can be granted. See additional Solr documentation related to Basic Authentication and other security concerns.- Parameters:
userName- Optional user name to use for BasicAuth with Solr
-
setPassword
Optional password to use for Basic Authentication along with the userName field for Solr.- Parameters:
password- Optional password to use for BasicAuth with Solr
-
setClientSessionTimeoutMillis
public void setClientSessionTimeoutMillis(int clientSessionTimeoutMillis) If using SolrCloud, this should be the value of the ZooKeeper client session timeout setting ('zkClientTimeout') in milliseconds. Note that the ZK server may not honor this value if it exceeds the server-side configured maximum ('maxSessionTimeout'). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-