public abstract class AbstractConfiguration
extends org.apache.commons.configuration.CompositeConfiguration
Modifier | Constructor and Description |
---|---|
protected |
AbstractConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getClientAuthProviderFactoryClass()
Get the client authentication provider factory class name.
|
Feature |
getFeature(String configProperty,
Feature defaultValue) |
Class<? extends org.apache.bookkeeper.meta.LedgerManagerFactory> |
getLedgerManagerFactoryClass()
Get ledger manager factory class.
|
String |
getLedgerManagerType()
Deprecated.
replaced by
getLedgerManagerFactoryClass() |
String |
getMetastoreImplClass()
Get metastore implementation class.
|
int |
getMetastoreMaxEntriesPerScan()
Get max entries per scan in metastore.
|
int |
getNettyMaxFrameSizeBytes()
Get the maximum netty frame size in bytes.
|
long |
getRereplicationEntryBatchSize()
Get the re-replication entry batch size
|
boolean |
getTLSClientAuthentication()
Whether the client will send an TLS certificate on TLS-handshake
|
String |
getTLSEnabledCipherSuites()
Get the list of enabled TLS cipher suites
|
String |
getTLSEnabledProtocols()
Get the list of enabled TLS protocols
|
String |
getTLSProvider()
Get TLS Provider (JDK or OpenSSL)
|
String |
getTLSProviderFactoryClass()
Get the security provider factory class name.
|
String |
getZkAvailableBookiesPath()
Get the node under which available bookies are stored
|
String |
getZkLedgersRootPath()
Get Zk Ledgers Root Path.
|
double |
getZkRequestRateLimit()
Get zookeeper access request rate limit.
|
boolean |
isZkEnableSecurity()
Are z-node created with strict ACLs
|
void |
loadConf(AbstractConfiguration baseConf)
You can load configuration from other configuration
|
void |
loadConf(org.apache.commons.configuration.Configuration otherConf)
Load configuration from other configuration object
|
void |
loadConf(URL confURL)
You can load configurations in precedence order.
|
AbstractConfiguration |
setClientAuthProviderFactoryClass(String factoryClass)
Set the client authentication provider factory class name.
|
void |
setFeature(String configProperty,
Feature feature) |
void |
setLedgerManagerFactoryClass(Class<? extends org.apache.bookkeeper.meta.LedgerManagerFactory> factoryClass)
Set Ledger Manager Factory Class.
|
void |
setLedgerManagerFactoryClassName(String factoryClassName)
Set Ledger Manager Factory Class Name.
|
void |
setLedgerManagerType(String lmType)
|
void |
setMetastoreImplClass(String metastoreImplClass)
Set metastore implementation class.
|
void |
setMetastoreMaxEntriesPerScan(int maxEntries)
Set max entries per scan in metastore.
|
AbstractConfiguration |
setNettyMaxFrameSizeBytes(int maxSize)
Set the max number of bytes a single message can be that is read by the bookie.
|
void |
setRereplicationEntryBatchSize(long rereplicationEntryBatchSize)
Set the max entries to keep in fragment for re-replication.
|
AbstractConfiguration |
setTLSClientAuthentication(boolean enabled)
Specify whether the client will send an TLS certificate on TLS-handshake
|
AbstractConfiguration |
setTLSEnabledCipherSuites(String list)
Set the list of enabled TLS cipher suites.
|
AbstractConfiguration |
setTLSEnabledProtocols(String list)
Set the list of enabled TLS protocols.
|
AbstractConfiguration |
setTLSProvider(String provider)
Set TLS Provider (JDK or OpenSSL)
|
AbstractConfiguration |
setTLSProviderFactoryClass(String factoryClass)
Set the client security provider factory class name.
|
void |
setZkEnableSecurity(boolean zkEnableSecurity)
Set the usage of ACLs of new z-nodes
|
void |
setZkLedgersRootPath(String zkLedgersPath)
Set Zk Ledgers Root Path.
|
void |
setZkRequestRateLimit(double rateLimit)
Set zookeeper access request rate limit.
|
addConfiguration, addPropertyDirect, clear, clearPropertyDirect, clone, containsKey, getConfiguration, getInMemoryConfiguration, getKeys, getKeys, getList, getNumberOfConfigurations, getProperty, getSource, getStringArray, isEmpty, removeConfiguration, setDelimiterParsingDisabled, setListDelimiter
addErrorLogListener, addProperty, append, clearProperty, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subset
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
static final org.slf4j.Logger LOG
public static final String READ_SYSTEM_PROPERTIES_PROPERTY
protected static final ClassLoader defaultLoader
protected static final String LEDGER_MANAGER_TYPE
protected static final String LEDGER_MANAGER_FACTORY_CLASS
protected static final String ZK_LEDGERS_ROOT_PATH
protected static final String ZK_REQUEST_RATE_LIMIT
protected static final String AVAILABLE_NODE
protected static final String REREPLICATION_ENTRY_BATCH_SIZE
protected static final String METASTORE_IMPL_CLASS
protected static final String METASTORE_MAX_ENTRIES_PER_SCAN
protected static final String TLS_PROVIDER
protected static final String TLS_PROVIDER_FACTORY_CLASS
protected static final String TLS_CLIENT_AUTHENTICATION
protected static final String TLS_ENABLED_CIPHER_SUITES
SSLEngine.setEnabledCipherSuites(java.lang.String[])
.
Please refer to official JDK JavaDocsprotected static final String TLS_ENABLED_PROTOCOLS
SSLEngine.setEnabledProtocols(java.lang.String[])
.
Please refer to official JDK JavaDocsprotected static final String NETTY_MAX_FRAME_SIZE
protected static final int DEFAULT_NETTY_MAX_FRAME_SIZE
protected static final String ZK_ENABLE_SECURITY
public static final String LEDGER_MANAGER_FACTORY_DISABLE_CLASS_CHECK
public void loadConf(URL confURL) throws org.apache.commons.configuration.ConfigurationException
confURL
- Configuration URLorg.apache.commons.configuration.ConfigurationException
public void loadConf(AbstractConfiguration baseConf)
baseConf
- Other Configurationpublic void loadConf(org.apache.commons.configuration.Configuration otherConf)
otherConf
- Other configuration object@Deprecated public void setLedgerManagerType(String lmType)
setLedgerManagerFactoryClass(java.lang.Class<? extends org.apache.bookkeeper.meta.LedgerManagerFactory>)
lmType
- Ledger Manager Type@Deprecated public String getLedgerManagerType()
getLedgerManagerFactoryClass()
org.apache.commons.configuration.ConfigurationException
public void setLedgerManagerFactoryClassName(String factoryClassName)
factoryClassName
- Ledger Manager Factory Class Namepublic void setLedgerManagerFactoryClass(Class<? extends org.apache.bookkeeper.meta.LedgerManagerFactory> factoryClass)
factoryClass
- Ledger Manager Factory Classpublic Class<? extends org.apache.bookkeeper.meta.LedgerManagerFactory> getLedgerManagerFactoryClass() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void setZkLedgersRootPath(String zkLedgersPath)
zkLedgersPath
- zk ledgers root pathpublic String getZkLedgersRootPath()
public double getZkRequestRateLimit()
public void setZkRequestRateLimit(double rateLimit)
rateLimit
- zookeeper access request rate limit.public boolean isZkEnableSecurity()
public void setZkEnableSecurity(boolean zkEnableSecurity)
zkEnableSecurity
- public String getZkAvailableBookiesPath()
public void setRereplicationEntryBatchSize(long rereplicationEntryBatchSize)
public long getRereplicationEntryBatchSize()
public String getMetastoreImplClass()
public void setMetastoreImplClass(String metastoreImplClass)
metastoreImplClass
- Metastore implementation Class name.public int getMetastoreMaxEntriesPerScan()
public void setMetastoreMaxEntriesPerScan(int maxEntries)
maxEntries
- Max entries per scan in metastore.public AbstractConfiguration setClientAuthProviderFactoryClass(String factoryClass)
factoryClass
- the client authentication provider factory class namepublic String getClientAuthProviderFactoryClass()
public int getNettyMaxFrameSizeBytes()
public AbstractConfiguration setNettyMaxFrameSizeBytes(int maxSize)
maxSize
- the max size in bytespublic String getTLSProviderFactoryClass()
public AbstractConfiguration setTLSProviderFactoryClass(String factoryClass)
factoryClass
- the client security provider factory class namepublic String getTLSProvider()
public AbstractConfiguration setTLSProvider(String provider)
provider
- TLS Provider typepublic boolean getTLSClientAuthentication()
#setTLSAuthentication(boolean)
public AbstractConfiguration setTLSClientAuthentication(boolean enabled)
enabled
- Whether to send a certificate or notpublic AbstractConfiguration setTLSEnabledCipherSuites(String list)
SSLEngine.setEnabledCipherSuites(java.lang.String[])
. Please refer to official JDK JavaDocslist
- comma separated list of enabled TLS cipher suitespublic String getTLSEnabledCipherSuites()
setTLSEnabledCipherSuites(java.lang.String)
public AbstractConfiguration setTLSEnabledProtocols(String list)
SSLEngine.setEnabledProtocols(java.lang.String[])
. Please refer to official JDK JavaDocslist
- comma separated list of enabled TLS cipher suitespublic String getTLSEnabledProtocols()
setTLSEnabledProtocols(java.lang.String)
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.