public class ServerConfiguration extends AbstractConfiguration
AVAILABLE_NODE, defaultLoader, LEDGER_MANAGER_FACTORY_CLASS, LEDGER_MANAGER_TYPE, METASTORE_IMPL_CLASS, METASTORE_MAX_ENTRIES_PER_SCAN, REREPLICATION_ENTRY_BATCH_SIZE, ZK_LEDGERS_ROOT_PATH
Constructor and Description |
---|
ServerConfiguration()
Construct a default configuration object
|
ServerConfiguration(AbstractConfiguration conf)
Construct a configuration based on other configuration
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowLoopback()
Is the bookie allowed to use a loopback interface as its primary
interface(i.e.
|
long |
getAuditorPeriodicBookieCheckInterval()
Get the interval between auditor bookie check runs.
|
long |
getAuditorPeriodicCheckInterval()
Get the regularity at which the auditor checks all ledgers.
|
int |
getBookiePort()
Get bookie port that bookie server listen on
|
int |
getCompactionMaxOutstandingRequests()
Get the maximum number of entries which can be compacted without flushing.
|
int |
getCompactionRate()
Get the rate of compaction adds.
|
int |
getDeathWatchInterval()
Get bookie death watch interval
|
int |
getDiskCheckInterval()
Get the disk checker interval
|
float |
getDiskUsageThreshold()
Returns disk free space threshold.
|
float |
getDiskUsageWarnThreshold()
Returns the warning threshold for disk usage.
|
long |
getEntryLogSizeLimit()
Get entry logger size limitation
|
int |
getFlushInterval()
Get flush interval
|
long |
getGcWaitTime()
Get Garbage collection wait time
|
String[] |
getIndexDirNames()
Get dir name to store index files.
|
File[] |
getIndexDirs()
Get index dir to store ledger index files.
|
boolean |
getJournalAdaptiveGroupWrites()
Should we group journal force writes
|
int |
getJournalAlignmentSize()
All the journal writes and commits should be aligned to given size.
|
long |
getJournalBufferedEntriesThreshold()
Maximum entries to buffer to impose on a journal write to achieve grouping.
|
long |
getJournalBufferedWritesThreshold()
Maximum bytes to buffer to impose on a journal write to achieve grouping
|
File |
getJournalDir()
Get dir to store journal files
|
String |
getJournalDirName()
Get dir name to store journal files
|
boolean |
getJournalFlushWhenQueueEmpty()
Should we flush the journal when queue is empty
|
int |
getJournalFormatVersionToWrite()
Get journal format version to write.
|
long |
getJournalMaxGroupWaitMSec()
Maximum latency to impose on a journal write to achieve grouping
|
int |
getJournalPreAllocSizeMB()
How much space should we pre-allocate at a time in the journal
|
boolean |
getJournalRemovePagesFromCache()
Should we remove pages from page cache after force write
|
int |
getJournalWriteBufferSizeKB()
Size of the write buffers used for the journal
|
String[] |
getLedgerDirNames()
Get dir names to store ledger data
|
File[] |
getLedgerDirs()
Get dirs that stores ledger data
|
String |
getListeningInterface()
Get the network interface that the bookie should
listen for connections on.
|
long |
getMajorCompactionInterval()
Get interval to run major compaction, in seconds.
|
double |
getMajorCompactionThreshold()
Get threshold of major compaction.
|
int |
getMaxBackupJournals()
Max number of older journal files kept
|
long |
getMaxJournalSizeMB()
Max journal file size
|
long |
getMinorCompactionInterval()
Get interval to run minor compaction, in seconds.
|
double |
getMinorCompactionThreshold()
Get threshold of minor compaction.
|
int |
getNumAddWorkerThreads()
Get the number of threads that should handle write requests.
|
int |
getNumJournalCallbackThreads()
Get the number of threads that should handle journal callbacks.
|
int |
getNumReadWorkerThreads()
Get the number of threads that should handle read requests.
|
int |
getOpenFileLimit()
Get open file limit
|
long |
getOpenLedgerRereplicationGracePeriod()
Get the grace period which the rereplication worker to wait before
fencing and rereplicating a ledger fragment which is still being written
to, on bookie failure.
|
int |
getPageLimit()
Get limitation number of index pages in ledger cache
|
int |
getPageSize()
Get page size
|
int |
getReadBufferBytes()
Get the number of bytes we should use as capacity for
org.apache.bookkeeper.bookie.BufferedReadChannel
Default is 512 bytes
|
boolean |
getServerTcpNoDelay()
Is tcp connection no delay.
|
int |
getSkipListArenaChunkSize()
Get the number of bytes we should use as chunk allocation for
org.apache.bookkeeper.bookie.SkipListArena
Default is 4 MB
|
int |
getSkipListArenaMaxAllocSize()
Get the max size we should allocate from the skiplist arena.
|
long |
getSkipListSizeLimit()
Get skip list data size limitation (default 64MB)
|
boolean |
getSortedLedgerStorageEnabled()
Check if sorted-ledger storage enabled (default true)
|
Class<? extends org.apache.bookkeeper.stats.StatsProvider> |
getStatsProviderClass()
Get the stats provider used by bookie.
|
boolean |
getUseHostNameAsBookieID()
Get whether bookie is using hostname for registration and in ledger
metadata.
|
int |
getWriteBufferBytes()
Get the number of bytes used as capacity for the write buffer.
|
String |
getZkServers()
Get zookeeper servers to connect
|
int |
getZkTimeout()
Get zookeeper timeout
|
boolean |
isAutoRecoveryDaemonEnabled()
Get whether the Bookie itself can start auto-recovery service also or not
|
boolean |
isEntryLogFilePreAllocationEnabled()
Is entry log file preallocation enabled.
|
boolean |
isReadOnlyModeEnabled()
Get whether read-only mode is enabled.
|
boolean |
isStatisticsEnabled()
Is statistics enabled
|
ServerConfiguration |
setAllowLoopback(boolean allow)
Configure the bookie to allow loopback interfaces to be used
as the primary bookie interface.
|
void |
setAuditorPeriodicBookieCheckInterval(long interval)
Set the interval between auditor bookie checks.
|
void |
setAuditorPeriodicCheckInterval(long interval)
Set the regularity at which the auditor will run a check
of all ledgers.
|
ServerConfiguration |
setAutoRecoveryDaemonEnabled(boolean enabled)
Sets that whether the auto-recovery service can start along with Bookie
server itself or not
|
ServerConfiguration |
setBookiePort(int port)
Set new bookie port that bookie server listen on
|
ServerConfiguration |
setCompactionMaxOutstandingRequests(int maxOutstandingRequests)
Set the maximum number of entries which can be compacted without flushing.
|
ServerConfiguration |
setCompactionRate(int rate)
Set the rate of compaction adds.
|
ServerConfiguration |
setDiskCheckInterval(int interval)
Set the disk checker interval to monitor ledger disk space
|
ServerConfiguration |
setDiskUsageThreshold(float threshold)
Set the Disk free space threshold as a fraction of the total
after which disk will be considered as full during disk check.
|
ServerConfiguration |
setDiskUsageWarnThreshold(float threshold)
Set the warning threshold for disk usage.
|
ServerConfiguration |
setEntryLogFilePreAllocationEnabled(boolean enabled)
Enable/disable entry log file preallocation.
|
ServerConfiguration |
setEntryLogSizeLimit(long logSizeLimit)
Set entry logger size limitation
|
ServerConfiguration |
setFlushInterval(int flushInterval)
Set flush interval
|
ServerConfiguration |
setGcWaitTime(long gcWaitTime)
Set garbage collection wait time
|
ServerConfiguration |
setIndexDirName(String[] indexDirs)
Set dir name to store index files.
|
ServerConfiguration |
setJournalAdaptiveGroupWrites(boolean enabled)
Enable/disable group journal force writes
|
ServerConfiguration |
setJournalAlignmentSize(int size)
Set journal alignment size.
|
ServerConfiguration |
setJournalBufferedEntriesThreshold(int maxEntries)
Set maximum entries to buffer to impose on a journal write to achieve grouping.
|
ServerConfiguration |
setJournalDirName(String journalDir)
Set dir name to store journal files
|
ServerConfiguration |
setJournalFlushWhenQueueEmpty(boolean enabled)
Set if we should flush the journal when queue is empty
|
ServerConfiguration |
setJournalFormatVersionToWrite(int version)
Set journal format version to write.
|
ServerConfiguration |
setJournalRemovePagesFromCache(boolean enabled)
Sets that whether should we remove pages from page cache after force write.
|
ServerConfiguration |
setLedgerDirNames(String[] ledgerDirs)
Set dir names to store ledger data
|
ServerConfiguration |
setListeningInterface(String iface)
Set the network interface that the bookie should listen on.
|
ServerConfiguration |
setMajorCompactionInterval(long interval)
Set interval to run major compaction.
|
ServerConfiguration |
setMajorCompactionThreshold(double threshold)
Set threshold of major compaction.
|
ServerConfiguration |
setMaxBackupJournals(int maxBackupJournals)
Set max number of older journal files to kept
|
ServerConfiguration |
setMaxJournalSizeMB(long maxJournalSize)
Set new max journal file size
|
ServerConfiguration |
setMinorCompactionInterval(long interval)
Set interval to run minor compaction
|
ServerConfiguration |
setMinorCompactionThreshold(double threshold)
Set threshold of minor compaction
|
ServerConfiguration |
setNumAddWorkerThreads(int numThreads)
Set the number of threads that would handle write requests.
|
ServerConfiguration |
setNumJournalCallbackThreads(int numThreads)
Set the number of threads that would handle journal callbacks.
|
ServerConfiguration |
setNumReadWorkerThreads(int numThreads)
Set the number of threads that would handle read requests.
|
ServerConfiguration |
setOpenFileLimit(int fileLimit)
Set limitation of number of open files.
|
void |
setOpenLedgerRereplicationGracePeriod(String waitTime)
Set the grace period which the rereplication worker will wait before
fencing and rereplicating a ledger fragment which is still being written
to, on bookie failure.
|
ServerConfiguration |
setPageLimit(int pageLimit)
Set limitation number of index pages in ledger cache.
|
ServerConfiguration |
setPageSize(int pageSize)
Set page size
|
ServerConfiguration |
setReadBufferBytes(int readBufferSize)
Set the number of bytes we should use as capacity for
org.apache.bookkeeper.bookie.BufferedReadChannel
|
ServerConfiguration |
setReadOnlyModeEnabled(boolean enabled)
Set whether the bookie is able to go into read-only mode.
|
ServerConfiguration |
setServerTcpNoDelay(boolean noDelay)
Set socket nodelay setting
|
ServerConfiguration |
setSkipListArenaChunkSize(int size)
Set the number of bytes w used as chunk allocation for
org.apache.bookkeeper.bookie.SkipListArena
|
ServerConfiguration |
setSkipListSizeLimit(int size)
Set skip list size limit.
|
ServerConfiguration |
setSortedLedgerStorageEnabled(boolean enabled)
Set sorted-ledger storage enabled or not
|
ServerConfiguration |
setStatisticsEnabled(boolean enabled)
Turn on/off statistics
|
ServerConfiguration |
setStatsProviderClass(Class<? extends org.apache.bookkeeper.stats.StatsProvider> providerClass)
Set the stats provider used by bookie.
|
ServerConfiguration |
setUseHostNameAsBookieID(boolean useHostName)
Configure the bookie to use its hostname to register with the
co-ordination service(eg: zookeeper) and in ledger metadata
|
ServerConfiguration |
setWriteBufferBytes(int writeBufferBytes)
Set the number of bytes used as capacity for the write buffer.
|
ServerConfiguration |
setZkServers(String zkServers)
Set zookeeper servers to connect
|
ServerConfiguration |
setZkTimeout(int zkTimeout)
Set zookeeper timeout
|
void |
validate()
Validate the configuration.
|
getLedgerManagerFactoryClass, getLedgerManagerType, getMetastoreImplClass, getMetastoreMaxEntriesPerScan, getRereplicationEntryBatchSize, getZkAvailableBookiesPath, getZkLedgersRootPath, loadConf, loadConf, loadConf, setLedgerManagerFactoryClass, setLedgerManagerFactoryClassName, setLedgerManagerType, setMetastoreImplClass, setMetastoreMaxEntriesPerScan, setRereplicationEntryBatchSize, setZkLedgersRootPath
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
protected static final String ENTRY_LOG_SIZE_LIMIT
protected static final String ENTRY_LOG_FILE_PREALLOCATION_ENABLED
protected static final String MINOR_COMPACTION_INTERVAL
protected static final String MINOR_COMPACTION_THRESHOLD
protected static final String MAJOR_COMPACTION_INTERVAL
protected static final String MAJOR_COMPACTION_THRESHOLD
protected static final String COMPACTION_MAX_OUTSTANDING_REQUESTS
protected static final String COMPACTION_RATE
protected static final String GC_WAIT_TIME
protected static final String FLUSH_INTERVAL
protected static final String DEATH_WATCH_INTERVAL
protected static final String OPEN_FILE_LIMIT
protected static final String PAGE_LIMIT
protected static final String PAGE_SIZE
protected static final String MAX_JOURNAL_SIZE
protected static final String MAX_BACKUP_JOURNALS
protected static final String JOURNAL_ADAPTIVE_GROUP_WRITES
protected static final String JOURNAL_MAX_GROUP_WAIT_MSEC
protected static final String JOURNAL_BUFFERED_WRITES_THRESHOLD
protected static final String JOURNAL_BUFFERED_ENTRIES_THRESHOLD
protected static final String JOURNAL_FLUSH_WHEN_QUEUE_EMPTY
protected static final String JOURNAL_REMOVE_FROM_PAGE_CACHE
protected static final String JOURNAL_PRE_ALLOC_SIZE
protected static final String JOURNAL_WRITE_BUFFER_SIZE
protected static final String JOURNAL_ALIGNMENT_SIZE
protected static final String NUM_JOURNAL_CALLBACK_THREADS
protected static final String JOURNAL_FORMAT_VERSION_TO_WRITE
protected static final String BOOKIE_PORT
protected static final String LISTENING_INTERFACE
protected static final String ALLOW_LOOPBACK
protected static final String JOURNAL_DIR
protected static final String LEDGER_DIRS
protected static final String INDEX_DIRS
protected static final String SERVER_TCP_NODELAY
protected static final String ZK_TIMEOUT
protected static final String ZK_SERVERS
protected static final String OPEN_LEDGER_REREPLICATION_GRACE_PERIOD
protected static final String READ_ONLY_MODE_ENABLED
protected static final String DISK_USAGE_THRESHOLD
protected static final String DISK_USAGE_WARN_THRESHOLD
protected static final String DISK_CHECK_INTERVAL
protected static final String AUDITOR_PERIODIC_CHECK_INTERVAL
protected static final String AUDITOR_PERIODIC_BOOKIE_CHECK_INTERVAL
protected static final String AUTO_RECOVERY_DAEMON_ENABLED
protected static final String NUM_ADD_WORKER_THREADS
protected static final String NUM_READ_WORKER_THREADS
protected static final String READ_BUFFER_SIZE
protected static final String WRITE_BUFFER_SIZE
protected static final String USE_HOST_NAME_AS_BOOKIE_ID
protected static final String SORTED_LEDGER_STORAGE_ENABLED
protected static final String SKIP_LIST_SIZE_LIMIT
protected static final String SKIP_LIST_CHUNK_SIZE_ENTRY
protected static final String SKIP_LIST_MAX_ALLOC_ENTRY
protected static final String ENABLE_STATISTICS
protected static final String STATS_PROVIDER_CLASS
public ServerConfiguration()
public ServerConfiguration(AbstractConfiguration conf)
conf
- Other configurationpublic long getEntryLogSizeLimit()
public ServerConfiguration setEntryLogSizeLimit(long logSizeLimit)
logSizeLimit
- new log size limitationpublic boolean isEntryLogFilePreAllocationEnabled()
public ServerConfiguration setEntryLogFilePreAllocationEnabled(boolean enabled)
enabled
- enable/disable entry log file preallocation.public long getGcWaitTime()
public ServerConfiguration setGcWaitTime(long gcWaitTime)
gcWaitTime
- gc wait timepublic int getFlushInterval()
public ServerConfiguration setFlushInterval(int flushInterval)
flushInterval
- Flush Intervalpublic int getDeathWatchInterval()
public int getOpenFileLimit()
public ServerConfiguration setOpenFileLimit(int fileLimit)
fileLimit
- Limitation of number of open files.public int getPageLimit()
public ServerConfiguration setPageLimit(int pageLimit)
pageLimit
- Limitation of number of index pages in ledger cache.public int getPageSize()
public ServerConfiguration setPageSize(int pageSize)
pageSize
- Page SizegetPageSize()
public long getMaxJournalSizeMB()
public ServerConfiguration setMaxJournalSizeMB(long maxJournalSize)
maxJournalSize
- new max journal file sizepublic int getJournalPreAllocSizeMB()
public int getJournalWriteBufferSizeKB()
public int getMaxBackupJournals()
public ServerConfiguration setMaxBackupJournals(int maxBackupJournals)
maxBackupJournals
- Max number of older journal filespublic int getJournalAlignmentSize()
public ServerConfiguration setJournalAlignmentSize(int size)
size
- journal alignment size.public int getJournalFormatVersionToWrite()
public ServerConfiguration setJournalFormatVersionToWrite(int version)
version
- journal format version to write.public int getBookiePort()
public ServerConfiguration setBookiePort(int port)
port
- Port to listen onpublic String getListeningInterface()
public ServerConfiguration setListeningInterface(String iface)
iface
- the interface to listen onpublic boolean getAllowLoopback()
setListeningInterface(String)
public ServerConfiguration setAllowLoopback(boolean allow)
allow
- whether to allow loopback interfacesgetAllowLoopback()
public String getJournalDirName()
public ServerConfiguration setJournalDirName(String journalDir)
journalDir
- Dir to store journal filespublic File getJournalDir()
public String[] getLedgerDirNames()
public ServerConfiguration setLedgerDirNames(String[] ledgerDirs)
ledgerDirs
- Dir names to store ledger datapublic File[] getLedgerDirs()
public String[] getIndexDirNames()
public ServerConfiguration setIndexDirName(String[] indexDirs)
indexDirs
- Index dir namespublic File[] getIndexDirs()
public boolean getServerTcpNoDelay()
public ServerConfiguration setServerTcpNoDelay(boolean noDelay)
noDelay
- NoDelay settingpublic String getZkServers()
public ServerConfiguration setZkServers(String zkServers)
zkServers
- ZooKeeper servers to connectpublic int getZkTimeout()
public ServerConfiguration setZkTimeout(int zkTimeout)
zkTimeout
- ZooKeeper server timeoutpublic boolean isStatisticsEnabled()
public ServerConfiguration setStatisticsEnabled(boolean enabled)
enabled
- Whether statistics enabled or not.public double getMinorCompactionThreshold()
public ServerConfiguration setMinorCompactionThreshold(double threshold)
threshold
- Threshold for minor compactiongetMinorCompactionThreshold()
public double getMajorCompactionThreshold()
public ServerConfiguration setMajorCompactionThreshold(double threshold)
threshold
- Threshold of major compactiongetMajorCompactionThreshold()
public long getMinorCompactionInterval()
public ServerConfiguration setMinorCompactionInterval(long interval)
interval
- Interval to run minor compactiongetMinorCompactionInterval()
public long getMajorCompactionInterval()
public ServerConfiguration setMajorCompactionInterval(long interval)
interval
- Interval to run major compactiongetMajorCompactionInterval()
public void setOpenLedgerRereplicationGracePeriod(String waitTime)
waitTime
- time to wait before replicating ledger fragmentBookKeeper.openLedger(long, org.apache.bookkeeper.client.BookKeeper.DigestType, byte[])
public long getOpenLedgerRereplicationGracePeriod()
public int getReadBufferBytes()
public ServerConfiguration setReadBufferBytes(int readBufferSize)
readBufferSize
- Read Buffer Sizepublic ServerConfiguration setNumAddWorkerThreads(int numThreads)
numThreads
- number of threads to handle write requests.public int getNumAddWorkerThreads()
public ServerConfiguration setNumReadWorkerThreads(int numThreads)
numThreads
- Number of threads to handle read requests.public int getNumReadWorkerThreads()
public int getWriteBufferBytes()
public ServerConfiguration setWriteBufferBytes(int writeBufferBytes)
writeBufferBytes
- Write Buffer Bytespublic ServerConfiguration setNumJournalCallbackThreads(int numThreads)
numThreads
- number of threads to handle journal callbacks.public int getNumJournalCallbackThreads()
public ServerConfiguration setSortedLedgerStorageEnabled(boolean enabled)
enabled
- public boolean getSortedLedgerStorageEnabled()
public long getSkipListSizeLimit()
public ServerConfiguration setSkipListSizeLimit(int size)
size
- skip list size limit.public int getSkipListArenaChunkSize()
public ServerConfiguration setSkipListArenaChunkSize(int size)
size
- chunk size.public int getSkipListArenaMaxAllocSize()
public boolean getJournalAdaptiveGroupWrites()
public ServerConfiguration setJournalAdaptiveGroupWrites(boolean enabled)
enabled
- flag to enable/disable group journal force writespublic long getJournalMaxGroupWaitMSec()
public long getJournalBufferedWritesThreshold()
public long getJournalBufferedEntriesThreshold()
getJournalBufferedWritesThreshold()
if this is set to zero or
less than zero.public ServerConfiguration setJournalBufferedEntriesThreshold(int maxEntries)
getJournalBufferedWritesThreshold()
set this to zero or less than
zero.maxEntries
- maximum entries to buffer.public ServerConfiguration setJournalFlushWhenQueueEmpty(boolean enabled)
public boolean getJournalFlushWhenQueueEmpty()
public ServerConfiguration setReadOnlyModeEnabled(boolean enabled)
enabled
- whether to enable read-only mode.public boolean isReadOnlyModeEnabled()
public ServerConfiguration setDiskUsageWarnThreshold(float threshold)
threshold
- warning threshold to force gc.public float getDiskUsageWarnThreshold()
public ServerConfiguration setDiskUsageThreshold(float threshold)
threshold
- threshold to declare a disk fullpublic float getDiskUsageThreshold()
public ServerConfiguration setDiskCheckInterval(int interval)
interval
- interval between disk checks for space.public int getDiskCheckInterval()
public void setAuditorPeriodicCheckInterval(long interval)
interval
- The interval in seconds. e.g. 86400 = 1 day, 604800 = 1 weekpublic long getAuditorPeriodicCheckInterval()
public void setAuditorPeriodicBookieCheckInterval(long interval)
interval
- The period in seconds.public long getAuditorPeriodicBookieCheckInterval()
setAuditorPeriodicBookieCheckInterval(long)
public ServerConfiguration setAutoRecoveryDaemonEnabled(boolean enabled)
enabled
- - true if need to start auto-recovery service. Otherwise
false.public boolean isAutoRecoveryDaemonEnabled()
public int getCompactionMaxOutstandingRequests()
public ServerConfiguration setCompactionMaxOutstandingRequests(int maxOutstandingRequests)
maxOutstandingRequests
- number of entries to compact before flushingpublic int getCompactionRate()
public ServerConfiguration setCompactionRate(int rate)
rate
- rate of compaction adds (adds per second)@Beta public boolean getJournalRemovePagesFromCache()
public ServerConfiguration setJournalRemovePagesFromCache(boolean enabled)
enabled
- - true if we need to remove pages from page cache. otherwise, falsepublic boolean getUseHostNameAsBookieID()
public ServerConfiguration setUseHostNameAsBookieID(boolean useHostName)
useHostName
- whether to use hostname for registration and in ledgermetadatagetUseHostNameAsBookieID()
public Class<? extends org.apache.bookkeeper.stats.StatsProvider> getStatsProviderClass() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public ServerConfiguration setStatsProviderClass(Class<? extends org.apache.bookkeeper.stats.StatsProvider> providerClass)
providerClass
- stats provider classpublic void validate() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.