public abstract class AbstractConfiguration
extends org.apache.commons.configuration.CompositeConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AVAILABLE_NODE |
protected static ClassLoader |
defaultLoader |
protected static String |
LEDGER_MANAGER_FACTORY_CLASS |
protected static String |
LEDGER_MANAGER_TYPE |
protected static String |
METASTORE_IMPL_CLASS |
protected static String |
METASTORE_MAX_ENTRIES_PER_SCAN |
protected static String |
REREPLICATION_ENTRY_BATCH_SIZE |
protected static String |
ZK_LEDGERS_ROOT_PATH |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
long |
getRereplicationEntryBatchSize()
Get the re-replication entry batch size
|
String |
getZkAvailableBookiesPath()
Get the node under which available bookies are stored
|
String |
getZkLedgersRootPath()
Get Zk Ledgers Root Path.
|
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.
|
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.
|
void |
setRereplicationEntryBatchSize(long rereplicationEntryBatchSize)
Set the max entries to keep in fragment for re-replication.
|
void |
setZkLedgersRootPath(String zkLedgersPath)
Set Zk Ledgers Root Path.
|
addConfiguration, addPropertyDirect, clear, clearPropertyDirect, clone, containsKey, getConfiguration, getInMemoryConfiguration, getKeys, getKeys, getList, getNumberOfConfigurations, getProperty, getSource, getStringArray, isEmpty, removeConfiguration, setDelimiterParsingDisabled, setListDelimiteraddErrorLogListener, 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, subsetaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEventsprotected 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 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
public void loadConf(URL confURL) throws org.apache.commons.configuration.ConfigurationException
confURL - Configuration URLorg.apache.commons.configuration.ConfigurationExceptionpublic 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.ConfigurationExceptionpublic 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.ConfigurationExceptionpublic void setZkLedgersRootPath(String zkLedgersPath)
zkLedgersPath - zk ledgers root pathpublic String getZkLedgersRootPath()
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.Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.