public abstract class AbstractConfiguration
extends org.apache.commons.configuration.CompositeConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AVAILABLE_NODE |
protected static String |
LEDGER_MANAGER_TYPE |
protected static String |
ZK_LEDGERS_ROOT_PATH |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLedgerManagerType()
Get Ledger Manager Type.
|
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(URL confURL)
You can load configurations in precedence order.
|
void |
setLedgerManagerType(String lmType)
Set Ledger Manager Type.
|
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 String LEDGER_MANAGER_TYPE
protected static final String ZK_LEDGERS_ROOT_PATH
protected static final String AVAILABLE_NODE
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 setLedgerManagerType(String lmType)
lmType - Ledger Manager Typepublic String getLedgerManagerType()
org.apache.commons.configuration.ConfigurationExceptionpublic void setZkLedgersRootPath(String zkLedgersPath)
zkLedgersPath - zk ledgers root pathpublic String getZkLedgersRootPath()
public String getZkAvailableBookiesPath()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.