Package org.apache.solr.common.cloud
Class SolrZkClient.Builder
java.lang.Object
org.apache.solr.common.cloud.SolrZkClient.Builder
- Enclosing class:
SolrZkClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.apache.curator.framework.api.ACLProviderorg.apache.solr.common.util.Compressororg.apache.solr.common.cloud.SolrClassLoaderbooleanintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withAclProvider(org.apache.curator.framework.api.ACLProvider aclProvider) withClosedCheck(SolrZkClient.IsClosed higherLevelIsClosed) withCompressor(org.apache.solr.common.util.Compressor c) withConnTimeOut(int zkConnectTimeout, TimeUnit unit) Sets the Zk connection timeoutwithSolrClassLoader(org.apache.solr.common.cloud.SolrClassLoader solrClassLoader) withStateFileCompression(int minStateByteLenForCompression, org.apache.solr.common.util.Compressor compressor) If the state.json is greater than this many bytes and compression is enabled in solr.xml, then the data will be compressedwithTimeout(int zkClientTimeout, TimeUnit unit) Sets the Zk client session timeoutwithUseDefaultCredsAndACLs(boolean useDefaultCredsAndACLs) withZkCredentialsProvider(ZkCredentialsProvider zkCredentialsProvider)
-
Field Details
-
zkServerAddress
-
zkClientTimeout
public int zkClientTimeout -
zkClientConnectTimeout
public int zkClientConnectTimeout -
zkCredentialsProvider
-
aclProvider
public org.apache.curator.framework.api.ACLProvider aclProvider -
higherLevelIsClosed
-
solrClassLoader
public org.apache.solr.common.cloud.SolrClassLoader solrClassLoader -
useDefaultCredsAndACLs
public boolean useDefaultCredsAndACLs -
compressor
public org.apache.solr.common.util.Compressor compressor
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withUrl
-
withTimeout
Sets the Zk client session timeout- Parameters:
zkClientTimeout- timeout valueunit- time unit
-
withStateFileCompression
public SolrZkClient.Builder withStateFileCompression(int minStateByteLenForCompression, org.apache.solr.common.util.Compressor compressor) If the state.json is greater than this many bytes and compression is enabled in solr.xml, then the data will be compressed- Parameters:
minStateByteLenForCompression- how big the state.json file can becompressor- The compressor to use
-
withConnTimeOut
Sets the Zk connection timeout- Parameters:
zkConnectTimeout- timeout valueunit- time unit
-
withZkCredentialsProvider
-
withAclProvider
public SolrZkClient.Builder withAclProvider(org.apache.curator.framework.api.ACLProvider aclProvider) -
withClosedCheck
-
withCompressor
-
withSolrClassLoader
public SolrZkClient.Builder withSolrClassLoader(org.apache.solr.common.cloud.SolrClassLoader solrClassLoader) -
withUseDefaultCredsAndACLs
-
build
-