Class ServerConfiguration
- java.lang.Object
- 
- org.apache.commons.configuration.event.EventSource
- 
- org.apache.commons.configuration.AbstractConfiguration
- 
- org.apache.commons.configuration.CompositeConfiguration
- 
- org.apache.bookkeeper.conf.AbstractConfiguration<ServerConfiguration>
- 
- org.apache.bookkeeper.conf.ServerConfiguration
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- org.apache.commons.configuration.Configuration
 
 public class ServerConfiguration extends AbstractConfiguration<ServerConfiguration> Configuration manages server-side settings.
- 
- 
Field SummaryFields Modifier and Type Field Description protected static java.lang.StringADVERTISED_ADDRESSprotected static java.lang.StringALLOW_EPHEMERAL_PORTSprotected static java.lang.StringALLOW_LOOPBACKprotected static java.lang.StringALLOW_MULTIPLEDIRS_UNDER_SAME_DISKPARTITIONprotected static java.lang.StringALLOW_STORAGE_EXPANSIONprotected static java.lang.StringAUDITOR_ACQUIRE_CONCURRENT_OPEN_LEDGER_OPERATIONS_TIMEOUT_MSECprotected static java.lang.StringAUDITOR_LEDGER_VERIFICATION_PERCENTAGEprotected static java.lang.StringAUDITOR_MAX_NUMBER_OF_CONCURRENT_OPEN_LEDGER_OPERATIONSprotected static java.lang.StringAUDITOR_PERIODIC_BOOKIE_CHECK_INTERVALprotected static java.lang.StringAUDITOR_PERIODIC_CHECK_INTERVALprotected static java.lang.StringAUDITOR_PERIODIC_PLACEMENT_POLICY_CHECK_INTERVALprotected static java.lang.StringAUDITOR_REPLICAS_CHECK_INTERVALprotected static java.lang.StringAUTHORIZED_ROLESprotected static java.lang.StringAUTO_RECOVERY_DAEMON_ENABLEDprotected static java.lang.StringBOOKIE_AUTH_PROVIDER_FACTORY_CLASSprotected static java.lang.StringBOOKIE_IDprotected static java.lang.StringBOOKIE_PORTprotected static java.lang.StringBYTEBUF_ALLOCATOR_SIZE_INITIALprotected static java.lang.StringBYTEBUF_ALLOCATOR_SIZE_MAXprotected static java.lang.StringBYTEBUF_ALLOCATOR_SIZE_MINprotected static java.lang.StringCLOSE_CHANNEL_ON_RESPONSE_TIMEOUTprotected static java.lang.StringCOMPACTION_MAX_OUTSTANDING_REQUESTSprotected static java.lang.StringCOMPACTION_RATEprotected static java.lang.StringCOMPACTION_RATE_BY_BYTESprotected static java.lang.StringCOMPACTION_RATE_BY_ENTRIESprotected static java.lang.StringDATA_INTEGRITY_CHECKING_ENABLEDprotected static java.lang.StringDATA_INTEGRITY_COOKIE_STAMPING_ENABLEDprotected static java.lang.StringDEATH_WATCH_INTERVALprotected static java.lang.StringDISABLE_SERVER_SOCKET_BINDprotected static java.lang.StringDISK_CHECK_INTERVALprotected static java.lang.StringDISK_USAGE_LWM_THRESHOLDprotected static java.lang.StringDISK_USAGE_THRESHOLDprotected static java.lang.StringDISK_USAGE_WARN_THRESHOLDprotected static java.lang.StringENABLE_LOCAL_TRANSPORTprotected static java.lang.StringENABLE_STATISTICSprotected static java.lang.StringENABLE_TASK_EXECUTION_STATSprotected static java.lang.StringENTRY_LOG_FILE_PREALLOCATION_ENABLEDprotected static java.lang.StringENTRY_LOG_PER_LEDGER_COUNTER_LIMITS_MULT_FACTORprotected static java.lang.StringENTRY_LOG_PER_LEDGER_ENABLEDprotected static java.lang.StringENTRY_LOG_SIZE_LIMITprotected static ConfigKeyENTRY_LOG_SIZE_LIMIT_KEYprotected static java.lang.StringENTRYLOGMAP_ACCESS_EXPIRYTIME_INSECONDSprotected static java.lang.StringEXTRA_SERVER_COMPONENTSprotected static java.lang.StringFILEINFO_CACHE_INITIAL_CAPACITYprotected static java.lang.StringFILEINFO_FORMAT_VERSION_TO_WRITEprotected static java.lang.StringFILEINFO_MAX_IDLE_TIMEprotected static java.lang.StringFLUSH_ENTRYLOG_INTERVAL_BYTESprotected static java.lang.StringFLUSH_INTERVALprotected static java.lang.StringFORCE_ALLOW_COMPACTIONprotected static java.lang.StringFORCE_READ_ONLY_BOOKIEprotected static java.lang.StringGC_ENTRYLOG_METADATA_CACHE_PATHprotected static java.lang.StringGC_ENTRYLOGMETADATA_CACHE_ENABLEDprotected static java.lang.StringGC_OVERREPLICATED_LEDGER_MAX_CONCURRENT_REQUESTSprotected static java.lang.StringGC_OVERREPLICATED_LEDGER_WAIT_TIMEprotected static java.lang.StringGC_WAIT_TIMEprotected static java.lang.StringHTTP_SERVER_ENABLEDprotected static java.lang.StringHTTP_SERVER_HOSTprotected static java.lang.StringHTTP_SERVER_KEY_STORE_PASSWORDprotected static java.lang.StringHTTP_SERVER_KEY_STORE_PATHprotected static java.lang.StringHTTP_SERVER_PORTprotected static java.lang.StringHTTP_SERVER_TLS_ENABLEprotected static java.lang.StringHTTP_SERVER_TRUST_STORE_PASSWORDprotected static java.lang.StringHTTP_SERVER_TRUST_STORE_PATHprotected static java.lang.StringIGNORE_EXTRA_SERVER_COMPONENTS_STARTUP_FAILURESprotected static java.lang.StringIN_FLIGHT_READ_ENTRY_NUM_IN_LEDGER_CHECKERprotected static java.lang.StringINDEX_DIRSprotected static java.lang.StringIS_FORCE_GC_ALLOW_WHEN_NO_SPACEprotected static java.lang.StringIS_THROTTLE_BY_BYTESprotected static java.lang.StringJOURNAL_ADAPTIVE_GROUP_WRITESprotected static java.lang.StringJOURNAL_ALIGNMENT_SIZEprotected static java.lang.StringJOURNAL_BUFFERED_ENTRIES_THRESHOLDprotected static java.lang.StringJOURNAL_BUFFERED_WRITES_THRESHOLDprotected static java.lang.StringJOURNAL_CHANNEL_PROVIDERprotected static java.lang.StringJOURNAL_DIRprotected static java.lang.StringJOURNAL_DIRSprotected static java.lang.StringJOURNAL_FLUSH_WHEN_QUEUE_EMPTYprotected static java.lang.StringJOURNAL_FORMAT_VERSION_TO_WRITEprotected static java.lang.StringJOURNAL_MAX_GROUP_WAIT_MSECprotected static java.lang.StringJOURNAL_MAX_MEMORY_SIZE_MBprotected static java.lang.StringJOURNAL_PAGECACHE_FLUSH_INTERVAL_MSECprotected static java.lang.StringJOURNAL_PRE_ALLOC_SIZEprotected static java.lang.StringJOURNAL_QUEUE_SIZEprotected static java.lang.StringJOURNAL_REMOVE_FROM_PAGE_CACHEprotected static java.lang.StringJOURNAL_SYNC_DATAprotected static java.lang.StringJOURNAL_WRITE_BUFFER_SIZEprotected static java.lang.StringJOURNAL_WRITE_DATAprotected static java.lang.StringLEDGER_DIRSprotected static java.lang.StringLEDGER_STORAGE_CLASSprotected static ConfigKeyLEDGER_STORAGE_CLASS_KEYprotected static java.lang.StringLISTENING_INTERFACEprotected static java.lang.StringLOCAL_CONSISTENCY_CHECK_ON_STARTUPprotected static java.lang.StringLOCAL_SCRUB_PERIODprotected static java.lang.StringLOCAL_SCRUB_RATE_LIMITprotected static java.lang.StringLOCK_RELEASE_OF_FAILED_LEDGER_GRACE_PERIODprotected static java.lang.StringLOST_BOOKIE_RECOVERY_DELAYprotected static java.lang.StringMAJOR_COMPACTION_INTERVALprotected static java.lang.StringMAJOR_COMPACTION_MAX_TIME_MILLISprotected static java.lang.StringMAJOR_COMPACTION_THRESHOLDprotected static java.lang.StringMAX_ADDS_IN_PROGRESS_LIMITprotected static java.lang.StringMAX_BACKUP_JOURNALSprotected static java.lang.StringMAX_JOURNAL_SIZEprotected static java.lang.StringMAX_PENDING_ADD_REQUESTS_PER_THREADprotected static java.lang.StringMAX_PENDING_READ_REQUESTS_PER_THREADprotected static java.lang.StringMAX_READS_IN_PROGRESS_LIMITprotected static java.lang.StringMAXIMUM_NUMBER_OF_ACTIVE_ENTRYLOGSprotected static java.lang.StringMIN_USABLESIZE_FOR_ENTRYLOG_CREATIONprotected static java.lang.StringMIN_USABLESIZE_FOR_HIGH_PRIORITY_WRITESprotected static java.lang.StringMIN_USABLESIZE_FOR_INDEXFILE_CREATIONprotected static java.lang.StringMINOR_COMPACTION_INTERVALprotected static java.lang.StringMINOR_COMPACTION_MAX_TIME_MILLISprotected static java.lang.StringMINOR_COMPACTION_THRESHOLDprotected static java.lang.StringNUM_ADD_WORKER_THREADSprotected static java.lang.StringNUM_HIGH_PRIORITY_WORKER_THREADSprotected static java.lang.StringNUM_JOURNAL_CALLBACK_THREADSprotected static java.lang.StringNUM_LONG_POLL_WORKER_THREADSprotected static java.lang.StringNUM_READ_WORKER_THREADSprotected static java.lang.StringNUMBER_OF_MEMTABLE_FLUSH_THREADSprotected static java.lang.StringOPEN_FILE_LIMITprotected static java.lang.StringOPEN_LEDGER_REREPLICATION_GRACE_PERIODprotected static java.lang.StringPAGE_LIMITprotected static java.lang.StringPAGE_SIZEprotected static java.lang.StringPERSIST_BOOKIE_STATUS_ENABLEDprotected static java.lang.StringREAD_BUFFER_SIZEprotected static java.lang.StringREAD_ONLY_MODE_ENABLEDprotected static java.lang.StringREAD_WORKER_THREADS_THROTTLING_ENABLEDprotected static java.lang.StringREGISTRATION_MANAGER_CLASSprotected static java.lang.StringREQUEST_TIMER_NO_OF_TICKSprotected static java.lang.StringREQUEST_TIMER_TICK_DURATION_MILLISECprotected static java.lang.StringRW_REREPLICATE_BACKOFF_MSprotected static java.lang.StringSERVER_NUM_IO_THREADSprotected static java.lang.StringSERVER_SOCK_KEEPALIVEprotected static java.lang.StringSERVER_SOCK_LINGERprotected static java.lang.StringSERVER_TCP_NODELAYprotected static java.lang.StringSERVER_WRITEBUFFER_HIGH_WATER_MARKprotected static java.lang.StringSERVER_WRITEBUFFER_LOW_WATER_MARKprotected static java.lang.StringSKIP_LIST_CHUNK_SIZE_ENTRYprotected static java.lang.StringSKIP_LIST_MAX_ALLOC_ENTRYprotected static java.lang.StringSKIP_LIST_SIZE_LIMITprotected static java.lang.StringSORTED_LEDGER_STORAGE_ENABLEDprotected static java.lang.StringSTATS_PROVIDER_CLASSprotected static java.lang.StringUNDERREPLICATED_LEDGER_RECOVERY_GRACE_PERIODprotected static java.lang.StringUSE_HOST_NAME_AS_BOOKIE_IDprotected static java.lang.StringUSE_SHORT_HOST_NAMEprotected static java.lang.StringUSE_TRANSACTIONAL_COMPACTIONprotected static java.lang.StringVERIFY_METADATA_ON_GCprotected static java.lang.StringWAIT_TIMEOUT_ON_RESPONSE_BACKPRESSUREprotected static java.lang.StringWRITE_BUFFER_SIZEprotected static java.lang.StringZK_RETRY_BACKOFF_MAX_MSprotected static java.lang.StringZK_RETRY_BACKOFF_START_MS- 
Fields inherited from class org.apache.bookkeeper.conf.AbstractConfigurationALLOCATOR_LEAK_DETECTION_POLICY, ALLOCATOR_OOM_POLICY, ALLOCATOR_POOLING_CONCURRENCY, ALLOCATOR_POOLING_POLICY, ALLOW_SHADED_LEDGER_MANAGER_FACTORY_CLASS, AVAILABLE_NODE, DEFAULT_ENTRY_FORMATTER, DEFAULT_LEDGERID_FORMATTER, DEFAULT_LOADER, DEFAULT_NETTY_MAX_FRAME_SIZE, DESIRED_NUM_ZONES_PER_WRITE_QUORUM, ENABLE_BUSY_WAIT, ENABLE_HEALTH_CHECK, ENFORCE_MIN_NUM_FAULT_DOMAINS_FOR_WRITE, ENFORCE_MIN_NUM_RACKS_PER_WRITE_QUORUM, ENFORCE_STRICT_ZONEAWARE_PLACEMENT, ENTRY_FORMATTER_CLASS, IGNORE_LOCAL_NODE_IN_PLACEMENT_POLICY, LEDGER_MANAGER_FACTORY_CLASS, LEDGER_MANAGER_FACTORY_DISABLE_CLASS_CHECK, LEDGER_MANAGER_TYPE, LEDGER_METADATA_FORMAT_VERSION, LEDGERID_FORMATTER_CLASS, LIMIT_STATS_LOGGING, METADATA_SERVICE_URI, METASTORE_IMPL_CLASS, METASTORE_MAX_ENTRIES_PER_SCAN, MIN_NUM_RACKS_PER_WRITE_QUORUM, MIN_NUM_ZONES_PER_WRITE_QUORUM, NETTY_MAX_FRAME_SIZE, PERMITTED_STARTUP_USERS, PRESERVE_MDC_FOR_TASK_EXECUTION, READ_SYSTEM_PROPERTIES_PROPERTY, REPLICATION_RATE_BY_BYTES, REREPLICATION_ENTRY_BATCH_SIZE, SHADED_LEDGER_MANAGER_FACTORY_CLASS_PREFIX, STORE_SYSTEMTIME_AS_LEDGER_CREATION_TIME, STORE_SYSTEMTIME_AS_LEDGER_UNDERREPLICATED_MARK_TIME, TLS_CERT_FILES_REFRESH_DURATION_SECONDS, TLS_CERTIFICATE_PATH, TLS_CLIENT_AUTHENTICATION, TLS_ENABLED_CIPHER_SUITES, TLS_ENABLED_PROTOCOLS, TLS_KEYSTORE, TLS_KEYSTORE_PASSWORD_PATH, TLS_KEYSTORE_TYPE, TLS_PROVIDER, TLS_PROVIDER_FACTORY_CLASS, TLS_TRUSTSTORE, TLS_TRUSTSTORE_PASSWORD_PATH, TLS_TRUSTSTORE_TYPE, ZK_ENABLE_SECURITY, ZK_LEDGERS_ROOT_PATH, ZK_REQUEST_RATE_LIMIT, ZK_RETRY_BACKOFF_MAX_RETRIES, ZK_SERVERS, ZK_TIMEOUT
 
- 
 - 
Constructor SummaryConstructors Constructor Description ServerConfiguration()Construct a default configuration object.ServerConfiguration(AbstractConfiguration conf)Construct a configuration based on other configuration.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetAdvertisedAddress()Get the configured advertised address for the bookie.booleangetAllowEphemeralPorts()Is the bookie allowed to use an ephemeral port (port 0) as its server port.booleangetAllowLoopback()Is the bookie allowed to use a loopback interface as its primary interface(i.e.booleangetAllowStorageExpansion()Return whether we should allow addition of ledger/index dirs to an existing bookie.intgetAuditorAcquireConcurrentOpenLedgerOperationsTimeoutMSec()Get the acquire concurrent open ledger operations timeout.longgetAuditorLedgerVerificationPercentage()Get what percentage of a ledger (fragment)'s entries will be verified.intgetAuditorMaxNumberOfConcurrentOpenLedgerOperations()Get the semaphore limit value of getting ledger from zookeeper in auto recovery.longgetAuditorPeriodicBookieCheckInterval()Get the interval between auditor bookie check runs.longgetAuditorPeriodicCheckInterval()Get the regularity at which the auditor checks all ledgers.longgetAuditorPeriodicPlacementPolicyCheckInterval()Get the regularity at which the auditor does placement policy check of all ledgers, which are closed.longgetAuditorPeriodicReplicasCheckInterval()Get the interval at which the auditor does replicas check of all ledgers.java.lang.String[]getAuthorizedRoles()Get the authorized roles.java.lang.StringgetBookieAuthProviderFactoryClass()Get the bookie authentication provider factory class name.java.lang.StringgetBookieId()Get the configured BookieId for the bookie.intgetBookiePort()Get bookie port that bookie server listen on.booleangetCloseChannelOnResponseTimeout()Configures action in case if server timed out sending response to the client.intgetCompactionMaxOutstandingRequests()Get the maximum number of entries which can be compacted without flushing.intgetCompactionRate()Deprecated.replaced bygetCompactionRateByEntries()intgetCompactionRateByBytes()Get the rate of compaction adds.intgetCompactionRateByEntries()Get the rate of compaction adds.intgetDeathWatchInterval()Get bookie death watch interval.intgetDiskCheckInterval()Get the disk checker interval.floatgetDiskLowWaterMarkUsageThreshold()Returns disk free space low water mark threshold.floatgetDiskUsageThreshold()Returns disk free space threshold.floatgetDiskUsageWarnThreshold()Returns the warning threshold for disk usage.booleangetEnableTaskExecutionStats()Whether to enable recording task execution stats.intgetEntrylogMapAccessExpiryTimeInSeconds()intgetEntryLogPerLedgerCounterLimitsMultFactor()longgetEntryLogSizeLimit()Get entry logger size limitation.java.lang.String[]getExtraServerComponents()Get the extra list of server lifecycle components to enable on a bookie server.intgetFileInfoCacheInitialCapacity()Get the minimum total size for the internal file info cache tables.intgetFileInfoFormatVersionToWrite()Get fileinfo format version to write.longgetFileInfoMaxIdleTime()Get the max idle time allowed for a open file info existed in file info cache.intgetFlushInterval()Get flush interval.longgetFlushIntervalInBytes()Set entry log flush interval in bytes.java.lang.StringgetGcEntryLogMetadataCachePath()Get directory to persist Entrylog metadata if gcPersistentEntrylogMetadataMapEnabled is true.intgetGcOverreplicatedLedgerMaxConcurrentRequests()Max number of concurrent requests in garbage collection of overreplicated ledgers.longgetGcOverreplicatedLedgerWaitTimeMillis()Get wait time in millis for garbage collection of overreplicated ledgers.longgetGcWaitTime()Get Garbage collection wait time.java.lang.StringgetHttpServerHost()Get the http server host.java.lang.StringgetHttpServerKeystorePassword()Get the http server keyStore password.java.lang.StringgetHttpServerKeystorePath()Get the http server keystore path.intgetHttpServerPort()Get the http server port.java.lang.StringgetHttpServerTrustStorePassword()Get the http server trustStore password.java.lang.StringgetHttpServerTrustStorePath()Get the http server trustStore path.booleangetIgnoreExtraServerComponentsStartupFailures()Return the flag whether to ignore startup failures on loading server components specified atgetExtraServerComponents().java.lang.String[]getIndexDirNames()Get dir name to store index files.java.io.File[]getIndexDirs()Get index dir to store ledger index files.intgetInFlightReadEntryNumInLedgerChecker()Get in flight read entry number when ledger checker.booleangetIsForceGCAllowWhenNoSpace()Get whether force compaction is allowed when disk full or almost full.booleangetIsThrottleByBytes()Get whether use bytes to throttle garbage collector compaction or not.booleangetJournalAdaptiveGroupWrites()Should we group journal force writes.intgetJournalAlignmentSize()All the journal writes and commits should be aligned to given size.longgetJournalBufferedEntriesThreshold()Maximum entries to buffer to impose on a journal write to achieve grouping.longgetJournalBufferedWritesThreshold()Maximum bytes to buffer to impose on a journal write to achieve grouping.java.lang.StringgetJournalChannelProvider()java.lang.StringgetJournalDirName()Deprecated.java.lang.String[]getJournalDirNames()Get dir names to store journal files.java.lang.StringgetJournalDirNameWithoutDefault()Get dir name to store journal files.java.io.File[]getJournalDirs()Get dirs to store journal files.booleangetJournalFlushWhenQueueEmpty()Should we flush the journal when queue is empty.intgetJournalFormatVersionToWrite()Get journal format version to write.longgetJournalMaxGroupWaitMSec()Maximum latency to impose on a journal write to achieve grouping.longgetJournalMaxMemorySizeMb()Get the max amount of memory that can be used by the journal.longgetJournalPageCacheFlushIntervalMSec()Get journal pageCache flush interval.intgetJournalPreAllocSizeMB()How much space should we pre-allocate at a time in the journal.intgetJournalQueueSize()Get size of journal queue.booleangetJournalRemovePagesFromCache()Should we remove pages from page cache after force write.booleangetJournalSyncData()Should the data be fsynced on journal before acknowledgment.intgetJournalWriteBufferSizeKB()Size of the write buffers used for the journal.booleangetJournalWriteData()Should the data be written to journal before acknowledgment.java.lang.String[]getLedgerDirNames()Get dir names to store ledger data.java.io.File[]getLedgerDirs()Get dirs that stores ledger data.java.lang.String[]getLedgerDirWithoutDefault()Get dir names to store ledger data.java.lang.StringgetLedgerStorageClass()java.lang.StringgetListeningInterface()Get the network interface that the bookie should listen for connections on.longgetLocalScrubPeriod()Get local scrub interval.doublegetLocalScrubRateLimit()Get local scrub rate limit (entries/second).longgetLockReleaseOfFailedLedgerGracePeriod()Get the grace period, in milliseconds, which the replication worker has to wait before releasing the lock after it failed to replicate a ledger.intgetLostBookieRecoveryDelay()Get how long to delay the recovery of ledgers of a lost bookie.longgetMajorCompactionInterval()Get interval to run major compaction, in seconds.longgetMajorCompactionMaxTimeMillis()Get the maximum milliseconds to run major compaction.doublegetMajorCompactionThreshold()Get threshold of major compaction.intgetMaxAddsInProgressLimit()Get max number of adds in progress.intgetMaxBackupJournals()Max number of older journal files kept.intgetMaximumNumberOfActiveEntryLogs()longgetMaxJournalSizeMB()Max journal file size.intgetMaxPendingAddRequestPerThread()If add workers threads are enabled, limit the number of pending requests, to avoid the executor queue to grow indefinitely (default: 10000 entries).intgetMaxPendingReadRequestPerThread()If read workers threads are enabled, limit the number of pending requests, to avoid the executor queue to grow indefinitely (default: 10000 entries).intgetMaxReadsInProgressLimit()Get max number of reads in progress.longgetMinorCompactionInterval()Get interval to run minor compaction, in seconds.longgetMinorCompactionMaxTimeMillis()Get the maximum milliseconds to run minor compaction.doublegetMinorCompactionThreshold()Get threshold of minor compaction.longgetMinUsableSizeForEntryLogCreation()Gets the minimum safe usable size to be available in ledger directory for Bookie to create entry log files.longgetMinUsableSizeForHighPriorityWrites()Gets the minimum safe usable size to be available in ledger directory for Bookie to accept high priority writes.longgetMinUsableSizeForIndexFileCreation()Gets the minimum safe Usable size to be available in index directory for Bookie to create Index File while replaying journal at the time of Bookie Start in Readonly Mode (in bytes).intgetNumAddWorkerThreads()Get the number of threads that should handle write requests.intgetNumHighPriorityWorkerThreads()Get the number of threads that should be used for high priority requests (i.e.intgetNumJournalCallbackThreads()Get the number of threads that should handle journal callbacks.intgetNumLongPollWorkerThreads()Get the number of threads that should handle long poll requests.intgetNumOfMemtableFlushThreads()intgetNumReadWorkerThreads()Get the number of threads that should handle read requests.intgetOpenFileLimit()Get open file limit.longgetOpenLedgerRereplicationGracePeriod()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.intgetPageLimit()Get limitation number of index pages in ledger cache.intgetPageSize()Get page size.intgetReadBufferBytes()Get the number of bytes we should use as capacity for org.apache.bookkeeper.bookie.BufferedReadChannel.intgetRecvByteBufAllocatorSizeInitial()Get Recv ByteBuf allocator initial buf size.intgetRecvByteBufAllocatorSizeMax()Get Recv ByteBuf allocator max buf size.intgetRecvByteBufAllocatorSizeMin()Get Recv ByteBuf allocator min buf size.java.lang.Class<? extends RegistrationManager>getRegistrationManagerClass()Deprecated.since 4.7.0, in favor of usingAbstractConfiguration.getMetadataServiceUri()intgetRequestTimerNumTicks()Get the number of ticks per wheel for the request timer.intgetRequestTimerTickDurationMs()Get the tick duration in milliseconds.intgetRwRereplicateBackoffMs()Get how long to backoff when encountering exception on rereplicating a ledger.intgetServerNumIOThreads()Get the number of IO threads.booleangetServerSockKeepalive()Get socket keepalive.intgetServerSockLinger()Timeout to drain the socket on close.booleangetServerTcpNoDelay()Is tcp connection no delay.intgetServerWriteBufferHighWaterMark()Get server netty channel write buffer high water mark.intgetServerWriteBufferLowWaterMark()Get server netty channel write buffer low water mark.intgetSkipListArenaChunkSize()Get the number of bytes we should use as chunk allocation for org.apache.bookkeeper.bookie.SkipListArena.intgetSkipListArenaMaxAllocSize()Get the max size we should allocate from the skiplist arena.longgetSkipListSizeLimit()Get skip list data size limitation (default 64MB).booleangetSortedLedgerStorageEnabled()Check if sorted-ledger storage enabled (default true).java.lang.Class<? extends StatsProvider>getStatsProviderClass()Get the stats provider used by bookie.protected ServerConfigurationgetThis()Trickery to allow inheritance with fluent style.java.lang.StringgetTLSCertificatePath()Get the path to file containing TLS Certificate.java.lang.StringgetTLSKeyStore()Get the keystore path for the client.java.lang.StringgetTLSKeyStorePasswordPath()Get the path to file containing keystore password if the client keystore is password protected.java.lang.StringgetTLSKeyStoreType()Get the keystore type for client.java.lang.StringgetTLSTrustStore()Get the truststore path for the client.java.lang.StringgetTLSTrustStorePasswordPath()Get the path to file containing truststore password if the client truststore is password protected.java.lang.StringgetTLSTrustStoreType()Get the truststore type for client.longgetUnderreplicatedLedgerRecoveryGracePeriod()Gets the grace period (in seconds) for underreplicated ledgers recovery.booleangetUseHostNameAsBookieID()Get whether bookie is using hostname for registration and in ledger metadata.booleangetUseShortHostName()If bookie is using hostname for registration and in ledger metadata then whether to use short hostname or FQDN hostname.booleangetUseTransactionalCompaction()Get whether to use transactional compaction and using a separate log for compaction or not.booleangetVerifyMetadataOnGC()Get whether the bookie is configured to double check prior to gc.longgetWaitTimeoutOnResponseBackpressureMillis()Timeout controlling wait on response send in case of unresponsive client (i.e.intgetWriteBufferBytes()Get the number of bytes used as capacity for the write buffer.intgetZkRetryBackoffMaxMs()Get zookeeper client backoff retry max time in millis.intgetZkRetryBackoffStartMs()Get zookeeper client backoff retry start time in millis.booleanisAllowMultipleDirsUnderSameDiskPartition()returns whether it is allowed to have multiple ledger/index/journal Directories in the same filesystem diskpartition.booleanisAutoRecoveryDaemonEnabled()Get whether the Bookie itself can start auto-recovery service also or not.booleanisDataIntegrityCheckingEnabled()booleanisDataIntegrityStampMissingCookiesEnabled()booleanisDisableServerSocketBind()Get whether to disable bind of server-side sockets.booleanisEnableLocalTransport()Get whether to listen for local JVM clients.booleanisEntryLogFilePreAllocationEnabled()Is entry log file preallocation enabled.booleanisEntryLogPerLedgerEnabled()booleanisForceAllowCompaction()The force compaction is allowed or not when disabling the entry log compaction.booleanisForceReadOnlyBookie()Get whether the Bookie is force started in read only mode or not.booleanisGcEntryLogMetadataCacheEnabled()Get whether the bookie is configured to use persistent entrylogMetadataMap.booleanisHttpServerEnabled()Get whether to start the http server or not.booleanisHttpServerTlsEnable()Get if Http Server Tls enable.booleanisLocalConsistencyCheckOnStartup()True if a local consistency check should be performed on startup.booleanisLocalScrubEnabled()Get whether local scrub is enabled.booleanisPersistBookieStatusEnabled()Get whether to persist the bookie status so that when bookie server restarts, it will continue using the previous status.booleanisReadOnlyModeEnabled()Get whether read-only mode is enabled.booleanisReadWorkerThreadsThrottlingEnabled()Get the auto-throttling status of the read-worker threads.booleanisStatisticsEnabled()Is statistics enabled.ServerConfigurationsetAdvertisedAddress(java.lang.String advertisedAddress)Configure the bookie to advertise a specific address.ServerConfigurationsetAllowEphemeralPorts(boolean allow)Configure the bookie to allow using an ephemeral port.ServerConfigurationsetAllowLoopback(boolean allow)Configure the bookie to allow loopback interfaces to be used as the primary bookie interface.ServerConfigurationsetAllowMultipleDirsUnderSameDiskPartition(boolean allow)Configure the Bookie to allow/disallow multiple ledger/index/journal directories in the same filesystem diskpartition.ServerConfigurationsetAllowStorageExpansion(boolean val)Change the setting of whether or not we should allow ledger/index dirs to be added to the current set of dirs.voidsetAuditorAcquireConcurrentOpenLedgerOperationsTimeoutMSec(int timeoutMs)Set the acquire concurrent open ledger operations timeout.ServerConfigurationsetAuditorLedgerVerificationPercentage(long auditorLedgerVerificationPercentage)Set what percentage of a ledger (fragment)'s entries will be verified.voidsetAuditorMaxNumberOfConcurrentOpenLedgerOperations(int semaphore)Set the semaphore limit value for getting ledger from zookeeper in auto recovery.voidsetAuditorPeriodicBookieCheckInterval(long interval)Set the interval between auditor bookie checks.voidsetAuditorPeriodicCheckInterval(long interval)Set the regularity at which the auditor will run a check of all ledgers.voidsetAuditorPeriodicPlacementPolicyCheckInterval(long interval)Sets the regularity/interval at which the auditor will run a placement policy check of all ledgers, which are closed.voidsetAuditorPeriodicReplicasCheckInterval(long interval)Sets the interval at which the auditor will run a replicas check of all ledgers.ServerConfigurationsetAuthorizedRoles(java.lang.String roles)Set authorized roles.ServerConfigurationsetAutoRecoveryDaemonEnabled(boolean enabled)Sets that whether the auto-recovery service can start along with Bookie server itself or not.voidsetBookieAuthProviderFactoryClass(java.lang.String factoryClass)Set the bookie authentication provider factory class name.ServerConfigurationsetBookieId(java.lang.String bookieId)Configure the bookie to advertise a specific BookieId.ServerConfigurationsetBookiePort(int port)Set new bookie port that bookie server listen on.ServerConfigurationsetCloseChannelOnResponseTimeout(boolean value)Configures action in case if server timed out sending response to the client.ServerConfigurationsetCompactionMaxOutstandingRequests(int maxOutstandingRequests)Set the maximum number of entries which can be compacted without flushing.ServerConfigurationsetCompactionRate(int rate)Set the rate of compaction adds.ServerConfigurationsetCompactionRateByBytes(int rate)Set the rate of compaction adds.ServerConfigurationsetCompactionRateByEntries(int rate)Set the rate of compaction adds.ServerConfigurationsetDataIntegrityCheckingEnabled(boolean enabled)Enabled data integrity checker.ServerConfigurationsetDataIntegrityStampMissingCookiesEnabled(boolean enabled)When this config is set to true and the data integrity checker is also enabled then any missing cookie files in the ledger directories do not prevent the bookie from booting.ServerConfigurationsetDisableServerSocketBind(boolean disableServerSocketBind)Configure the bookie to disable bind on network interfaces, this bookie will be available only to BookKeeper clients executed on the local JVM.ServerConfigurationsetDiskCheckInterval(int interval)Set the disk checker interval to monitor ledger disk space.ServerConfigurationsetDiskLowWaterMarkUsageThreshold(float threshold)Set the disk free space low water mark threshold.ServerConfigurationsetDiskUsageThreshold(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.ServerConfigurationsetDiskUsageWarnThreshold(float threshold)Set the warning threshold for disk usage.ServerConfigurationsetEnableLocalTransport(boolean enableLocalTransport)Configure the bookie to listen for BookKeeper clients executed on the local JVM.ServerConfigurationsetEnableTaskExecutionStats(boolean enabled)Enable/Disable recording task execution stats.ServerConfigurationsetEntryLogFilePreAllocationEnabled(boolean enabled)Enable/disable entry log file preallocation.ServerConfigurationsetEntrylogMapAccessExpiryTimeInSeconds(int entrylogMapAccessExpiryTimeInSeconds)ServerConfigurationsetEntryLogPerLedgerCounterLimitsMultFactor(int entryLogPerLedgerCounterLimitsMultFactor)ServerConfigurationsetEntryLogPerLedgerEnabled(boolean entryLogPerLedgerEnabled)ServerConfigurationsetEntryLogSizeLimit(long logSizeLimit)Set entry logger size limitation.ServerConfigurationsetExtraServerComponents(java.lang.String[] componentClasses)Set the extra list of server lifecycle components to enable on a bookie server.ServerConfigurationsetFileInfoCacheInitialCapacity(int initialCapacity)Set the minimum total size for the internal file info cache tables for initialization.ServerConfigurationsetFileInfoFormatVersionToWrite(int version)Set fileinfo format version to write.ServerConfigurationsetFileInfoMaxIdleTime(long idleTime)Set the max idle time allowed for a open file info existed in file info cache.ServerConfigurationsetFlushInterval(int flushInterval)Set flush interval.ServerConfigurationsetFlushIntervalInBytes(long flushInterval)Set entry log flush interval in bytes.ServerConfigurationsetForceAllowCompaction(boolean enable)Allow manually force compact the entry log or not.ServerConfigurationsetForceReadOnlyBookie(boolean enabled)Sets that whether force start a bookie in readonly mode.ServerConfigurationsetGcEntryLogMetadataCacheEnabled(boolean gcEntryLogMetadataCacheEnabled)Set whether the bookie is configured to use persistent entrylogMetadataMap.ServerConfigurationsetGcEntryLogMetadataCachePath(java.lang.String gcEntrylogMetadataCachePath)Set directory to persist Entrylog metadata if gcPersistentEntrylogMetadataMapEnabled is true.ServerConfigurationsetGcOverreplicatedLedgerMaxConcurrentRequests(int gcOverreplicatedLedgerMaxConcurrentRequests)Max number of concurrent requests in garbage collection of overreplicated ledgers.ServerConfigurationsetGcOverreplicatedLedgerWaitTime(long gcWaitTime, java.util.concurrent.TimeUnit unit)Set wait time for garbage collection of overreplicated ledgers.ServerConfigurationsetGcWaitTime(long gcWaitTime)Set garbage collection wait time.ServerConfigurationsetHttpServerEnabled(boolean enabled)Set whether to start the http server or not.ServerConfigurationsetHttpServerHost(java.lang.String host)Set Http server host listening on.ServerConfigurationsetHttpServerKeyStorePassword(java.lang.String keyStorePassword)Set Http server keyStore password.ServerConfigurationsetHttpServerKeystorePath(java.lang.String keystorePath)Set Http server keystore path.ServerConfigurationsetHttpServerPort(int port)Set Http server port listening on.ServerConfigurationsetHttpServerTlsEnable(boolean tlsEnable)Set if Http Server Tls enable.ServerConfigurationsetHttpServerTrustStorePasswordPassword(java.lang.String trustStorePassword)Set Http server trustStore password.ServerConfigurationsetHttpServerTrustStorePath(java.lang.String trustStorePath)Set Http server trustStore path.ServerConfigurationsetIgnoreExtraServerComponentsStartupFailures(boolean enabled)Set the flag whether to ignore startup failures on loading server components specified atgetExtraServerComponents().ServerConfigurationsetIndexDirName(java.lang.String[] indexDirs)Set dir name to store index files.ServerConfigurationsetIsForceGCAllowWhenNoSpace(boolean force)Set whether force GC is allowed when disk full or almost full.ServerConfigurationsetIsThrottleByBytes(boolean byBytes)Set whether use bytes to throttle garbage collector compaction or not.ServerConfigurationsetJournalAdaptiveGroupWrites(boolean enabled)Enable/disable group journal force writes.ServerConfigurationsetJournalAlignmentSize(int size)Set journal alignment size.ServerConfigurationsetJournalBufferedEntriesThreshold(int maxEntries)Set maximum entries to buffer to impose on a journal write to achieve grouping.ServerConfigurationsetJournalBufferedWritesThreshold(long maxBytes)Set maximum bytes to buffer to impose on a journal write to achieve grouping.ServerConfigurationsetJournalChannelProvider(java.lang.String journalChannelProvider)Set JournalChannelProvider classname.ServerConfigurationsetJournalDirName(java.lang.String journalDir)Set dir name to store journal files.ServerConfigurationsetJournalDirsName(java.lang.String[] journalDirs)Set dir names to store journal files.ServerConfigurationsetJournalFlushWhenQueueEmpty(boolean enabled)Set if we should flush the journal when queue is empty.ServerConfigurationsetJournalFormatVersionToWrite(int version)Set journal format version to write.ServerConfigurationsetJournalMaxGroupWaitMSec(long journalMaxGroupWaitMSec)Sets the maximum latency to impose on a journal write to achieve grouping.ServerConfigurationsetJournalMaxMemorySizeMb(long journalMaxMemorySizeMb)Set the max amount of memory that can be used by the journal.ServerConfigurationsetJournalPageCacheFlushIntervalMSec(long journalPageCacheFlushIntervalMSec)Set PageCache flush interval in second.ServerConfigurationsetJournalQueueSize(int journalQueueSize)Set the size of the journal queue.ServerConfigurationsetJournalRemovePagesFromCache(boolean enabled)Sets that whether should we remove pages from page cache after force write.ServerConfigurationsetJournalSyncData(boolean syncData)Enable or disable journal syncs.ServerConfigurationsetJournalWriteBufferSizeKB(int bufferSizeKB)Set the size of the write buffers used for the journal.ServerConfigurationsetJournalWriteData(boolean journalWriteData)Should the data be written to journal before acknowledgment.ServerConfigurationsetLedgerDirNames(java.lang.String[] ledgerDirs)Set dir names to store ledger data.ServerConfigurationsetLedgerStorageClass(java.lang.String ledgerStorageClass)Set theLedgerStorageimplementation class name.ServerConfigurationsetListeningInterface(java.lang.String iface)Set the network interface that the bookie should listen on.voidsetLocalScrubPeriod(long period)Set local scrub period in seconds (<= 0 for disabled).voidsetLocalScrubRateLimit(double scrubRateLimit)Get local scrub rate limit (entries/second).voidsetLockReleaseOfFailedLedgerGracePeriod(java.lang.String waitTime)Set the grace period, in milliseconds, which the replication worker has to wait before releasing the lock after it failed to replicate a ledger.voidsetLostBookieRecoveryDelay(int interval)Set the delay interval for starting recovery of a lost bookie.ServerConfigurationsetMajorCompactionInterval(long interval)Set interval to run major compaction.ServerConfigurationsetMajorCompactionMaxTimeMillis(long majorCompactionMaxTimeMillis)Set the maximum milliseconds to run major compaction.ServerConfigurationsetMajorCompactionThreshold(double threshold)Set threshold of major compaction.ServerConfigurationsetMaxAddsInProgressLimit(int value)Set max number of adds in progress.ServerConfigurationsetMaxBackupJournals(int maxBackupJournals)Set max number of older journal files to kept.ServerConfigurationsetMaximumNumberOfActiveEntryLogs(int maximumNumberOfActiveEntryLogs)ServerConfigurationsetMaxJournalSizeMB(long maxJournalSize)Set new max journal file size.ServerConfigurationsetMaxPendingAddRequestPerThread(int maxPendingAddRequestsPerThread)Set the max number of pending add requests for each add worker thread.ServerConfigurationsetMaxPendingReadRequestPerThread(int maxPendingReadRequestsPerThread)Set the max number of pending read requests for each read worker thread.ServerConfigurationsetMaxReadsInProgressLimit(int value)Set max number of reads in progress.ServerConfigurationsetMinorCompactionInterval(long interval)Set interval to run minor compaction.ServerConfigurationsetMinorCompactionMaxTimeMillis(long minorCompactionMaxTimeMillis)Set the maximum milliseconds to run minor compaction.ServerConfigurationsetMinorCompactionThreshold(double threshold)Set threshold of minor compaction.ServerConfigurationsetMinUsableSizeForEntryLogCreation(long minUsableSizeForEntryLogCreation)Sets the minimum safe usable size to be available in ledger directory for Bookie to create entry log files.ServerConfigurationsetMinUsableSizeForHighPriorityWrites(long minUsableSizeForHighPriorityWrites)Sets the minimum safe usable size to be available in ledger directory for Bookie to accept high priority writes.ServerConfigurationsetMinUsableSizeForIndexFileCreation(long minUsableSizeForIndexFileCreation)Sets the minimum safe Usable size to be available in index directory for Bookie to create Index File while replaying journal at the time of Bookie Start in Readonly Mode (in bytes).ServerConfigurationsetNettyMaxFrameSizeBytes(int maxSize)Set the max number of bytes a single message can be that is read by the bookie.ServerConfigurationsetNumAddWorkerThreads(int numThreads)Set the number of threads that would handle write requests.ServerConfigurationsetNumHighPriorityWorkerThreads(int numThreads)Set the number of threads that should be used for high priority requests (i.e.ServerConfigurationsetNumJournalCallbackThreads(int numThreads)Set the number of threads that would handle journal callbacks.ServerConfigurationsetNumLongPollWorkerThreads(int numThreads)Set the number of threads that should handle long poll requests.ServerConfigurationsetNumOfMemtableFlushThreads(int numOfMemtableFlushThreads)ServerConfigurationsetNumReadWorkerThreads(int numThreads)Set the number of threads that would handle read requests.ServerConfigurationsetOpenFileLimit(int fileLimit)Set limitation of number of open files.voidsetOpenLedgerRereplicationGracePeriod(java.lang.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.ServerConfigurationsetPageLimit(int pageLimit)Set limitation number of index pages in ledger cache.ServerConfigurationsetPageSize(int pageSize)Set page size.ServerConfigurationsetPersistBookieStatusEnabled(boolean enabled)Whether to persist the bookie status so that when bookie server restarts, it will continue using the previous status.ServerConfigurationsetReadBufferBytes(int readBufferSize)Set the number of bytes we should use as capacity for org.apache.bookkeeper.bookie.BufferedReadChannel.ServerConfigurationsetReadOnlyModeEnabled(boolean enabled)Set whether the bookie is able to go into read-only mode.ServerConfigurationsetReadWorkerThreadsThrottlingEnabled(boolean throttle)Use auto-throttling of the read-worker threads.voidsetRecvByteBufAllocatorSizeInitial(int size)Set Recv ByteBuf allocator initial buf size.voidsetRecvByteBufAllocatorSizeMax(int size)Set Recv ByteBuf allocator max buf size.voidsetRecvByteBufAllocatorSizeMin(int size)Set Recv ByteBuf allocator min buf size.voidsetRegistrationManagerClass(java.lang.Class<? extends RegistrationManager> regManagerClass)Deprecated.since 4.7.0, in favor of usingAbstractConfiguration.setMetadataServiceUri(String)ServerConfigurationsetRequestTimerNumTicks(int tickCount)Set the number of ticks per wheel for the request timer.ServerConfigurationsetRequestTimerTickDurationMs(int tickDuration)Set the tick duration in milliseconds.voidsetRwRereplicateBackoffMs(int backoffMs)Set how long to backoff when encountering exception on rereplicating a ledger.ServerConfigurationsetServerNumIOThreads(int numThreads)Set the number of IO threads.ServerConfigurationsetServerSockKeepalive(boolean keepalive)Set socket keepalive setting.ServerConfigurationsetServerSockLinger(int linger)Set socket linger timeout on close.ServerConfigurationsetServerTcpNoDelay(boolean noDelay)Set socket nodelay setting.ServerConfigurationsetServerWriteBufferHighWaterMark(int waterMark)Set server netty channel write buffer high water mark.ServerConfigurationsetServerWriteBufferLowWaterMark(int waterMark)Set server netty channel write buffer low water mark.ServerConfigurationsetSkipListArenaChunkSize(int size)Set the number of bytes we used as chunk allocation for org.apache.bookkeeper.bookie.SkipListArena.ServerConfigurationsetSkipListArenaMaxAllocSize(int size)Set the max size we should allocate from the skiplist arena.ServerConfigurationsetSkipListSizeLimit(int size)Set skip list size limit.ServerConfigurationsetSortedLedgerStorageEnabled(boolean enabled)Deprecated.UsesetLedgerStorageClass(String)to configure the implementation classServerConfigurationsetStatisticsEnabled(boolean enabled)Turn on/off statistics.ServerConfigurationsetStatsProviderClass(java.lang.Class<? extends StatsProvider> providerClass)Set the stats provider used by bookie.ServerConfigurationsetTLSCertificatePath(java.lang.String arg)Set the path to file containing TLS Certificate.ServerConfigurationsetTLSKeyStore(java.lang.String arg)Set the keystore path for the client.ServerConfigurationsetTLSKeyStorePasswordPath(java.lang.String arg)Set the path to file containing keystore password, if the client keystore is password protected.ServerConfigurationsetTLSKeyStoreType(java.lang.String arg)Set the keystore type for client.ServerConfigurationsetTLSTrustStore(java.lang.String arg)Set the truststore path for the client.ServerConfigurationsetTLSTrustStorePasswordPath(java.lang.String arg)Set the path to file containing truststore password, if the client truststore is password protected.ServerConfigurationsetTLSTrustStoreType(java.lang.String arg)Set the truststore type for client.voidsetUnderreplicatedLedgerRecoveryGracePeriod(long gracePeriod)Sets the grace period (in seconds) for underreplicated ledgers recovery.ServerConfigurationsetUseHostNameAsBookieID(boolean useHostName)Configure the bookie to use its hostname to register with the co-ordination service(eg: zookeeper) and in ledger metadata.ServerConfigurationsetUseShortHostName(boolean useShortHostName)Configure the bookie to use its short hostname or FQDN hostname to register with the co-ordination service(eg: zookeeper) and in ledger metadata.ServerConfigurationsetUseTransactionalCompaction(boolean useTransactionalCompaction)Set whether to use transactional compaction and using a separate log for compaction or not.ServerConfigurationsetVerifyMetadataOnGc(boolean verifyMetadataOnGC)Set whether the bookie is configured to double check prior to gc.ServerConfigurationsetWaitTimeoutOnResponseBackpressureMillis(long value)Timeout controlling wait on response send in case of unresponsive client (i.e.ServerConfigurationsetWriteBufferBytes(int writeBufferBytes)Set the number of bytes used as capacity for the write buffer.ServerConfigurationsetZkRetryBackoffMaxMs(int retryMs)Set zookeeper client backoff retry max time in millis.ServerConfigurationsetZkRetryBackoffStartMs(int retryMs)Set zookeeper client backoff retry start time in millis.voidvalidate()Validate the configuration.- 
Methods inherited from class org.apache.bookkeeper.conf.AbstractConfigurationasJson, getAllocatorLeakDetectionPolicy, getAllocatorOutOfMemoryPolicy, getAllocatorPoolingConcurrency, getAllocatorPoolingPolicy, getClientAuthProviderFactoryClass, getDesiredNumZonesPerWriteQuorum, getEnforceMinNumFaultDomainsForWrite, getEnforceMinNumRacksPerWriteQuorum, getEnforceStrictZoneawarePlacement, getEntryFormatterClass, getFeature, getIgnoreLocalNodeInPlacementPolicy, getLedgerIdFormatterClass, getLedgerManagerFactoryClass, getLedgerManagerFactoryClassName, getLedgerManagerLayoutStringFromFactoryClass, getLedgerManagerType, getLedgerMetadataFormatVersion, getLimitStatsLogging, getMetadataServiceUri, getMetadataServiceUriUnchecked, getMetastoreImplClass, getMetastoreMaxEntriesPerScan, getMinNumRacksPerWriteQuorum, getMinNumZonesPerWriteQuorum, getNettyMaxFrameSizeBytes, getPermittedStartupUsers, getPreserveMdcForTaskExecution, getReplicationRateByBytes, getRereplicationEntryBatchSize, getShadedLedgerManagerFactoryClassPrefix, getStoreSystemTimeAsLedgerUnderreplicatedMarkTime, getTLSCertFilesRefreshDurationSeconds, getTLSClientAuthentication, getTLSEnabledCipherSuites, getTLSEnabledProtocols, getTLSProvider, getTLSProviderFactoryClass, getZkAvailableBookiesPath, getZkLedgersRootPath, getZkRequestRateLimit, getZkRetryBackoffMaxRetries, getZkServers, getZkTimeout, isBusyWaitEnabled, isShadedLedgerManagerFactoryClassAllowed, isZkEnableSecurity, loadConf, loadConf, setAllocatorLeakDetectionPolicy, setAllocatorOutOfMemoryPolicy, setAllocatorPoolingConcurrenncy, setAllocatorPoolingPolicy, setAllowShadedLedgerManagerFactoryClass, setBusyWaitEnabled, setClientAuthProviderFactoryClass, setDesiredNumZonesPerWriteQuorum, setEnforceMinNumFaultDomainsForWrite, setEnforceMinNumRacksPerWriteQuorum, setEnforceStrictZoneawarePlacement, setEntryFormatterClass, setFeature, setIgnoreLocalNodeInPlacementPolicy, setLedgerIdFormatterClass, setLedgerManagerFactoryClass, setLedgerManagerFactoryClassName, setLedgerManagerType, setLedgerMetadataFormatVersion, setLimitStatsLogging, setMetadataServiceUri, setMetastoreImplClass, setMetastoreMaxEntriesPerScan, setMinNumRacksPerWriteQuorum, setMinNumZonesPerWriteQuorum, setPermittedStartupUsers, setPreserveMdcForTaskExecution, setReplicationRateByBytes, setRereplicationEntryBatchSize, setShadedLedgerManagerFactoryClassPrefix, setStoreSystemTimeAsLedgerUnderreplicatedMarkTime, setTLSCertFilesRefreshDurationSeconds, setTLSClientAuthentication, setTLSEnabledCipherSuites, setTLSEnabledProtocols, setTLSProvider, setTLSProviderFactoryClass, setZkEnableSecurity, setZkLedgersRootPath, setZkRequestRateLimit, setZkRetryBackoffMaxRetries, setZkServers, setZkTimeout
 - 
Methods inherited from class org.apache.commons.configuration.CompositeConfigurationaddConfiguration, addConfiguration, addPropertyDirect, clear, clearPropertyDirect, clone, containsKey, getConfiguration, getInMemoryConfiguration, getKeys, getKeys, getList, getNumberOfConfigurations, getProperty, getSource, getStringArray, isEmpty, removeConfiguration, setDelimiterParsingDisabled, setListDelimiter
 - 
Methods inherited from class org.apache.commons.configuration.AbstractConfigurationaddErrorLogListener, 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, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subset
 - 
Methods inherited from class org.apache.commons.configuration.event.EventSourceaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
 
- 
 
- 
- 
- 
Field Detail- 
LEDGER_STORAGE_CLASSprotected static final java.lang.String LEDGER_STORAGE_CLASS - See Also:
- Constant Field Values
 
 - 
LEDGER_STORAGE_CLASS_KEYprotected static final ConfigKey LEDGER_STORAGE_CLASS_KEY 
 - 
ENTRY_LOG_SIZE_LIMITprotected static final java.lang.String ENTRY_LOG_SIZE_LIMIT - See Also:
- Constant Field Values
 
 - 
ENTRY_LOG_SIZE_LIMIT_KEYprotected static final ConfigKey ENTRY_LOG_SIZE_LIMIT_KEY 
 - 
ENTRY_LOG_FILE_PREALLOCATION_ENABLEDprotected static final java.lang.String ENTRY_LOG_FILE_PREALLOCATION_ENABLED - See Also:
- Constant Field Values
 
 - 
FORCE_ALLOW_COMPACTIONprotected static final java.lang.String FORCE_ALLOW_COMPACTION - See Also:
- Constant Field Values
 
 - 
MINOR_COMPACTION_INTERVALprotected static final java.lang.String MINOR_COMPACTION_INTERVAL - See Also:
- Constant Field Values
 
 - 
MINOR_COMPACTION_THRESHOLDprotected static final java.lang.String MINOR_COMPACTION_THRESHOLD - See Also:
- Constant Field Values
 
 - 
MINOR_COMPACTION_MAX_TIME_MILLISprotected static final java.lang.String MINOR_COMPACTION_MAX_TIME_MILLIS - See Also:
- Constant Field Values
 
 - 
MAJOR_COMPACTION_INTERVALprotected static final java.lang.String MAJOR_COMPACTION_INTERVAL - See Also:
- Constant Field Values
 
 - 
MAJOR_COMPACTION_THRESHOLDprotected static final java.lang.String MAJOR_COMPACTION_THRESHOLD - See Also:
- Constant Field Values
 
 - 
MAJOR_COMPACTION_MAX_TIME_MILLISprotected static final java.lang.String MAJOR_COMPACTION_MAX_TIME_MILLIS - See Also:
- Constant Field Values
 
 - 
IS_THROTTLE_BY_BYTESprotected static final java.lang.String IS_THROTTLE_BY_BYTES - See Also:
- Constant Field Values
 
 - 
COMPACTION_MAX_OUTSTANDING_REQUESTSprotected static final java.lang.String COMPACTION_MAX_OUTSTANDING_REQUESTS - See Also:
- Constant Field Values
 
 - 
COMPACTION_RATEprotected static final java.lang.String COMPACTION_RATE - See Also:
- Constant Field Values
 
 - 
COMPACTION_RATE_BY_ENTRIESprotected static final java.lang.String COMPACTION_RATE_BY_ENTRIES - See Also:
- Constant Field Values
 
 - 
COMPACTION_RATE_BY_BYTESprotected static final java.lang.String COMPACTION_RATE_BY_BYTES - See Also:
- Constant Field Values
 
 - 
GC_WAIT_TIMEprotected static final java.lang.String GC_WAIT_TIME - See Also:
- Constant Field Values
 
 - 
IS_FORCE_GC_ALLOW_WHEN_NO_SPACEprotected static final java.lang.String IS_FORCE_GC_ALLOW_WHEN_NO_SPACE - See Also:
- Constant Field Values
 
 - 
GC_OVERREPLICATED_LEDGER_WAIT_TIMEprotected static final java.lang.String GC_OVERREPLICATED_LEDGER_WAIT_TIME - See Also:
- Constant Field Values
 
 - 
GC_OVERREPLICATED_LEDGER_MAX_CONCURRENT_REQUESTSprotected static final java.lang.String GC_OVERREPLICATED_LEDGER_MAX_CONCURRENT_REQUESTS - See Also:
- Constant Field Values
 
 - 
USE_TRANSACTIONAL_COMPACTIONprotected static final java.lang.String USE_TRANSACTIONAL_COMPACTION - See Also:
- Constant Field Values
 
 - 
VERIFY_METADATA_ON_GCprotected static final java.lang.String VERIFY_METADATA_ON_GC - See Also:
- Constant Field Values
 
 - 
GC_ENTRYLOGMETADATA_CACHE_ENABLEDprotected static final java.lang.String GC_ENTRYLOGMETADATA_CACHE_ENABLED - See Also:
- Constant Field Values
 
 - 
GC_ENTRYLOG_METADATA_CACHE_PATHprotected static final java.lang.String GC_ENTRYLOG_METADATA_CACHE_PATH - See Also:
- Constant Field Values
 
 - 
LOCAL_SCRUB_PERIODprotected static final java.lang.String LOCAL_SCRUB_PERIOD - See Also:
- Constant Field Values
 
 - 
LOCAL_SCRUB_RATE_LIMITprotected static final java.lang.String LOCAL_SCRUB_RATE_LIMIT - See Also:
- Constant Field Values
 
 - 
FLUSH_INTERVALprotected static final java.lang.String FLUSH_INTERVAL - See Also:
- Constant Field Values
 
 - 
FLUSH_ENTRYLOG_INTERVAL_BYTESprotected static final java.lang.String FLUSH_ENTRYLOG_INTERVAL_BYTES - See Also:
- Constant Field Values
 
 - 
DEATH_WATCH_INTERVALprotected static final java.lang.String DEATH_WATCH_INTERVAL - See Also:
- Constant Field Values
 
 - 
OPEN_FILE_LIMITprotected static final java.lang.String OPEN_FILE_LIMIT - See Also:
- Constant Field Values
 
 - 
PAGE_LIMITprotected static final java.lang.String PAGE_LIMIT - See Also:
- Constant Field Values
 
 - 
PAGE_SIZEprotected static final java.lang.String PAGE_SIZE - See Also:
- Constant Field Values
 
 - 
FILEINFO_CACHE_INITIAL_CAPACITYprotected static final java.lang.String FILEINFO_CACHE_INITIAL_CAPACITY - See Also:
- Constant Field Values
 
 - 
FILEINFO_MAX_IDLE_TIMEprotected static final java.lang.String FILEINFO_MAX_IDLE_TIME - See Also:
- Constant Field Values
 
 - 
FILEINFO_FORMAT_VERSION_TO_WRITEprotected static final java.lang.String FILEINFO_FORMAT_VERSION_TO_WRITE - See Also:
- Constant Field Values
 
 - 
MAX_JOURNAL_SIZEprotected static final java.lang.String MAX_JOURNAL_SIZE - See Also:
- Constant Field Values
 
 - 
MAX_BACKUP_JOURNALSprotected static final java.lang.String MAX_BACKUP_JOURNALS - See Also:
- Constant Field Values
 
 - 
JOURNAL_SYNC_DATAprotected static final java.lang.String JOURNAL_SYNC_DATA - See Also:
- Constant Field Values
 
 - 
JOURNAL_WRITE_DATAprotected static final java.lang.String JOURNAL_WRITE_DATA - See Also:
- Constant Field Values
 
 - 
JOURNAL_ADAPTIVE_GROUP_WRITESprotected static final java.lang.String JOURNAL_ADAPTIVE_GROUP_WRITES - See Also:
- Constant Field Values
 
 - 
JOURNAL_MAX_GROUP_WAIT_MSECprotected static final java.lang.String JOURNAL_MAX_GROUP_WAIT_MSEC - See Also:
- Constant Field Values
 
 - 
JOURNAL_BUFFERED_WRITES_THRESHOLDprotected static final java.lang.String JOURNAL_BUFFERED_WRITES_THRESHOLD - See Also:
- Constant Field Values
 
 - 
JOURNAL_BUFFERED_ENTRIES_THRESHOLDprotected static final java.lang.String JOURNAL_BUFFERED_ENTRIES_THRESHOLD - See Also:
- Constant Field Values
 
 - 
JOURNAL_FLUSH_WHEN_QUEUE_EMPTYprotected static final java.lang.String JOURNAL_FLUSH_WHEN_QUEUE_EMPTY - See Also:
- Constant Field Values
 
 - 
JOURNAL_REMOVE_FROM_PAGE_CACHEprotected static final java.lang.String JOURNAL_REMOVE_FROM_PAGE_CACHE - See Also:
- Constant Field Values
 
 - 
JOURNAL_PRE_ALLOC_SIZEprotected static final java.lang.String JOURNAL_PRE_ALLOC_SIZE - See Also:
- Constant Field Values
 
 - 
JOURNAL_WRITE_BUFFER_SIZEprotected static final java.lang.String JOURNAL_WRITE_BUFFER_SIZE - See Also:
- Constant Field Values
 
 - 
JOURNAL_ALIGNMENT_SIZEprotected static final java.lang.String JOURNAL_ALIGNMENT_SIZE - See Also:
- Constant Field Values
 
 - 
NUM_JOURNAL_CALLBACK_THREADSprotected static final java.lang.String NUM_JOURNAL_CALLBACK_THREADS - See Also:
- Constant Field Values
 
 - 
JOURNAL_FORMAT_VERSION_TO_WRITEprotected static final java.lang.String JOURNAL_FORMAT_VERSION_TO_WRITE - See Also:
- Constant Field Values
 
 - 
JOURNAL_QUEUE_SIZEprotected static final java.lang.String JOURNAL_QUEUE_SIZE - See Also:
- Constant Field Values
 
 - 
JOURNAL_MAX_MEMORY_SIZE_MBprotected static final java.lang.String JOURNAL_MAX_MEMORY_SIZE_MB - See Also:
- Constant Field Values
 
 - 
JOURNAL_PAGECACHE_FLUSH_INTERVAL_MSECprotected static final java.lang.String JOURNAL_PAGECACHE_FLUSH_INTERVAL_MSEC - See Also:
- Constant Field Values
 
 - 
JOURNAL_CHANNEL_PROVIDERprotected static final java.lang.String JOURNAL_CHANNEL_PROVIDER - See Also:
- Constant Field Values
 
 - 
MAX_ADDS_IN_PROGRESS_LIMITprotected static final java.lang.String MAX_ADDS_IN_PROGRESS_LIMIT - See Also:
- Constant Field Values
 
 - 
MAX_READS_IN_PROGRESS_LIMITprotected static final java.lang.String MAX_READS_IN_PROGRESS_LIMIT - See Also:
- Constant Field Values
 
 - 
CLOSE_CHANNEL_ON_RESPONSE_TIMEOUTprotected static final java.lang.String CLOSE_CHANNEL_ON_RESPONSE_TIMEOUT - See Also:
- Constant Field Values
 
 - 
WAIT_TIMEOUT_ON_RESPONSE_BACKPRESSUREprotected static final java.lang.String WAIT_TIMEOUT_ON_RESPONSE_BACKPRESSURE - See Also:
- Constant Field Values
 
 - 
BOOKIE_PORTprotected static final java.lang.String BOOKIE_PORT - See Also:
- Constant Field Values
 
 - 
LISTENING_INTERFACEprotected static final java.lang.String LISTENING_INTERFACE - See Also:
- Constant Field Values
 
 - 
ALLOW_LOOPBACKprotected static final java.lang.String ALLOW_LOOPBACK - See Also:
- Constant Field Values
 
 - 
ADVERTISED_ADDRESSprotected static final java.lang.String ADVERTISED_ADDRESS - See Also:
- Constant Field Values
 
 - 
BOOKIE_IDprotected static final java.lang.String BOOKIE_ID - See Also:
- Constant Field Values
 
 - 
ALLOW_EPHEMERAL_PORTSprotected static final java.lang.String ALLOW_EPHEMERAL_PORTS - See Also:
- Constant Field Values
 
 - 
JOURNAL_DIRprotected static final java.lang.String JOURNAL_DIR - See Also:
- Constant Field Values
 
 - 
JOURNAL_DIRSprotected static final java.lang.String JOURNAL_DIRS - See Also:
- Constant Field Values
 
 - 
LEDGER_DIRSprotected static final java.lang.String LEDGER_DIRS - See Also:
- Constant Field Values
 
 - 
INDEX_DIRSprotected static final java.lang.String INDEX_DIRS - See Also:
- Constant Field Values
 
 - 
ALLOW_STORAGE_EXPANSIONprotected static final java.lang.String ALLOW_STORAGE_EXPANSION - See Also:
- Constant Field Values
 
 - 
SERVER_TCP_NODELAYprotected static final java.lang.String SERVER_TCP_NODELAY - See Also:
- Constant Field Values
 
 - 
SERVER_SOCK_KEEPALIVEprotected static final java.lang.String SERVER_SOCK_KEEPALIVE - See Also:
- Constant Field Values
 
 - 
SERVER_SOCK_LINGERprotected static final java.lang.String SERVER_SOCK_LINGER - See Also:
- Constant Field Values
 
 - 
SERVER_WRITEBUFFER_LOW_WATER_MARKprotected static final java.lang.String SERVER_WRITEBUFFER_LOW_WATER_MARK - See Also:
- Constant Field Values
 
 - 
SERVER_WRITEBUFFER_HIGH_WATER_MARKprotected static final java.lang.String SERVER_WRITEBUFFER_HIGH_WATER_MARK - See Also:
- Constant Field Values
 
 - 
SERVER_NUM_IO_THREADSprotected static final java.lang.String SERVER_NUM_IO_THREADS - See Also:
- Constant Field Values
 
 - 
ZK_RETRY_BACKOFF_START_MSprotected static final java.lang.String ZK_RETRY_BACKOFF_START_MS - See Also:
- Constant Field Values
 
 - 
ZK_RETRY_BACKOFF_MAX_MSprotected static final java.lang.String ZK_RETRY_BACKOFF_MAX_MS - See Also:
- Constant Field Values
 
 - 
OPEN_LEDGER_REREPLICATION_GRACE_PERIODprotected static final java.lang.String OPEN_LEDGER_REREPLICATION_GRACE_PERIOD - See Also:
- Constant Field Values
 
 - 
LOCK_RELEASE_OF_FAILED_LEDGER_GRACE_PERIODprotected static final java.lang.String LOCK_RELEASE_OF_FAILED_LEDGER_GRACE_PERIOD - See Also:
- Constant Field Values
 
 - 
READ_ONLY_MODE_ENABLEDprotected static final java.lang.String READ_ONLY_MODE_ENABLED - See Also:
- Constant Field Values
 
 - 
FORCE_READ_ONLY_BOOKIEprotected static final java.lang.String FORCE_READ_ONLY_BOOKIE - See Also:
- Constant Field Values
 
 - 
PERSIST_BOOKIE_STATUS_ENABLEDprotected static final java.lang.String PERSIST_BOOKIE_STATUS_ENABLED - See Also:
- Constant Field Values
 
 - 
DISK_USAGE_THRESHOLDprotected static final java.lang.String DISK_USAGE_THRESHOLD - See Also:
- Constant Field Values
 
 - 
DISK_USAGE_WARN_THRESHOLDprotected static final java.lang.String DISK_USAGE_WARN_THRESHOLD - See Also:
- Constant Field Values
 
 - 
DISK_USAGE_LWM_THRESHOLDprotected static final java.lang.String DISK_USAGE_LWM_THRESHOLD - See Also:
- Constant Field Values
 
 - 
DISK_CHECK_INTERVALprotected static final java.lang.String DISK_CHECK_INTERVAL - See Also:
- Constant Field Values
 
 - 
AUDITOR_PERIODIC_CHECK_INTERVALprotected static final java.lang.String AUDITOR_PERIODIC_CHECK_INTERVAL - See Also:
- Constant Field Values
 
 - 
AUDITOR_PERIODIC_BOOKIE_CHECK_INTERVALprotected static final java.lang.String AUDITOR_PERIODIC_BOOKIE_CHECK_INTERVAL - See Also:
- Constant Field Values
 
 - 
AUDITOR_PERIODIC_PLACEMENT_POLICY_CHECK_INTERVALprotected static final java.lang.String AUDITOR_PERIODIC_PLACEMENT_POLICY_CHECK_INTERVAL - See Also:
- Constant Field Values
 
 - 
AUDITOR_LEDGER_VERIFICATION_PERCENTAGEprotected static final java.lang.String AUDITOR_LEDGER_VERIFICATION_PERCENTAGE - See Also:
- Constant Field Values
 
 - 
AUTO_RECOVERY_DAEMON_ENABLEDprotected static final java.lang.String AUTO_RECOVERY_DAEMON_ENABLED - See Also:
- Constant Field Values
 
 - 
LOST_BOOKIE_RECOVERY_DELAYprotected static final java.lang.String LOST_BOOKIE_RECOVERY_DELAY - See Also:
- Constant Field Values
 
 - 
RW_REREPLICATE_BACKOFF_MSprotected static final java.lang.String RW_REREPLICATE_BACKOFF_MS - See Also:
- Constant Field Values
 
 - 
UNDERREPLICATED_LEDGER_RECOVERY_GRACE_PERIODprotected static final java.lang.String UNDERREPLICATED_LEDGER_RECOVERY_GRACE_PERIOD - See Also:
- Constant Field Values
 
 - 
AUDITOR_REPLICAS_CHECK_INTERVALprotected static final java.lang.String AUDITOR_REPLICAS_CHECK_INTERVAL - See Also:
- Constant Field Values
 
 - 
AUDITOR_MAX_NUMBER_OF_CONCURRENT_OPEN_LEDGER_OPERATIONSprotected static final java.lang.String AUDITOR_MAX_NUMBER_OF_CONCURRENT_OPEN_LEDGER_OPERATIONS - See Also:
- Constant Field Values
 
 - 
AUDITOR_ACQUIRE_CONCURRENT_OPEN_LEDGER_OPERATIONS_TIMEOUT_MSECprotected static final java.lang.String AUDITOR_ACQUIRE_CONCURRENT_OPEN_LEDGER_OPERATIONS_TIMEOUT_MSEC - See Also:
- Constant Field Values
 
 - 
IN_FLIGHT_READ_ENTRY_NUM_IN_LEDGER_CHECKERprotected static final java.lang.String IN_FLIGHT_READ_ENTRY_NUM_IN_LEDGER_CHECKER - See Also:
- Constant Field Values
 
 - 
NUM_ADD_WORKER_THREADSprotected static final java.lang.String NUM_ADD_WORKER_THREADS - See Also:
- Constant Field Values
 
 - 
NUM_READ_WORKER_THREADSprotected static final java.lang.String NUM_READ_WORKER_THREADS - See Also:
- Constant Field Values
 
 - 
MAX_PENDING_READ_REQUESTS_PER_THREADprotected static final java.lang.String MAX_PENDING_READ_REQUESTS_PER_THREAD - See Also:
- Constant Field Values
 
 - 
MAX_PENDING_ADD_REQUESTS_PER_THREADprotected static final java.lang.String MAX_PENDING_ADD_REQUESTS_PER_THREAD - See Also:
- Constant Field Values
 
 - 
NUM_LONG_POLL_WORKER_THREADSprotected static final java.lang.String NUM_LONG_POLL_WORKER_THREADS - See Also:
- Constant Field Values
 
 - 
NUM_HIGH_PRIORITY_WORKER_THREADSprotected static final java.lang.String NUM_HIGH_PRIORITY_WORKER_THREADS - See Also:
- Constant Field Values
 
 - 
READ_WORKER_THREADS_THROTTLING_ENABLEDprotected static final java.lang.String READ_WORKER_THREADS_THROTTLING_ENABLED - See Also:
- Constant Field Values
 
 - 
REQUEST_TIMER_TICK_DURATION_MILLISECprotected static final java.lang.String REQUEST_TIMER_TICK_DURATION_MILLISEC - See Also:
- Constant Field Values
 
 - 
REQUEST_TIMER_NO_OF_TICKSprotected static final java.lang.String REQUEST_TIMER_NO_OF_TICKS - See Also:
- Constant Field Values
 
 - 
READ_BUFFER_SIZEprotected static final java.lang.String READ_BUFFER_SIZE - See Also:
- Constant Field Values
 
 - 
WRITE_BUFFER_SIZEprotected static final java.lang.String WRITE_BUFFER_SIZE - See Also:
- Constant Field Values
 
 - 
USE_HOST_NAME_AS_BOOKIE_IDprotected static final java.lang.String USE_HOST_NAME_AS_BOOKIE_ID - See Also:
- Constant Field Values
 
 - 
USE_SHORT_HOST_NAMEprotected static final java.lang.String USE_SHORT_HOST_NAME - See Also:
- Constant Field Values
 
 - 
ENABLE_LOCAL_TRANSPORTprotected static final java.lang.String ENABLE_LOCAL_TRANSPORT - See Also:
- Constant Field Values
 
 - 
DISABLE_SERVER_SOCKET_BINDprotected static final java.lang.String DISABLE_SERVER_SOCKET_BIND - See Also:
- Constant Field Values
 
 - 
SORTED_LEDGER_STORAGE_ENABLEDprotected static final java.lang.String SORTED_LEDGER_STORAGE_ENABLED - See Also:
- Constant Field Values
 
 - 
SKIP_LIST_SIZE_LIMITprotected static final java.lang.String SKIP_LIST_SIZE_LIMIT - See Also:
- Constant Field Values
 
 - 
SKIP_LIST_CHUNK_SIZE_ENTRYprotected static final java.lang.String SKIP_LIST_CHUNK_SIZE_ENTRY - See Also:
- Constant Field Values
 
 - 
SKIP_LIST_MAX_ALLOC_ENTRYprotected static final java.lang.String SKIP_LIST_MAX_ALLOC_ENTRY - See Also:
- Constant Field Values
 
 - 
ENABLE_STATISTICSprotected static final java.lang.String ENABLE_STATISTICS - See Also:
- Constant Field Values
 
 - 
STATS_PROVIDER_CLASSprotected static final java.lang.String STATS_PROVIDER_CLASS - See Also:
- Constant Field Values
 
 - 
BYTEBUF_ALLOCATOR_SIZE_INITIALprotected static final java.lang.String BYTEBUF_ALLOCATOR_SIZE_INITIAL - See Also:
- Constant Field Values
 
 - 
BYTEBUF_ALLOCATOR_SIZE_MINprotected static final java.lang.String BYTEBUF_ALLOCATOR_SIZE_MIN - See Also:
- Constant Field Values
 
 - 
BYTEBUF_ALLOCATOR_SIZE_MAXprotected static final java.lang.String BYTEBUF_ALLOCATOR_SIZE_MAX - See Also:
- Constant Field Values
 
 - 
BOOKIE_AUTH_PROVIDER_FACTORY_CLASSprotected static final java.lang.String BOOKIE_AUTH_PROVIDER_FACTORY_CLASS - See Also:
- Constant Field Values
 
 - 
MIN_USABLESIZE_FOR_INDEXFILE_CREATIONprotected static final java.lang.String MIN_USABLESIZE_FOR_INDEXFILE_CREATION - See Also:
- Constant Field Values
 
 - 
MIN_USABLESIZE_FOR_ENTRYLOG_CREATIONprotected static final java.lang.String MIN_USABLESIZE_FOR_ENTRYLOG_CREATION - See Also:
- Constant Field Values
 
 - 
MIN_USABLESIZE_FOR_HIGH_PRIORITY_WRITESprotected static final java.lang.String MIN_USABLESIZE_FOR_HIGH_PRIORITY_WRITES - See Also:
- Constant Field Values
 
 - 
ALLOW_MULTIPLEDIRS_UNDER_SAME_DISKPARTITIONprotected static final java.lang.String ALLOW_MULTIPLEDIRS_UNDER_SAME_DISKPARTITION - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_ENABLEDprotected static final java.lang.String HTTP_SERVER_ENABLED - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_PORTprotected static final java.lang.String HTTP_SERVER_PORT - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_HOSTprotected static final java.lang.String HTTP_SERVER_HOST - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_TLS_ENABLEprotected static final java.lang.String HTTP_SERVER_TLS_ENABLE - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_KEY_STORE_PATHprotected static final java.lang.String HTTP_SERVER_KEY_STORE_PATH - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_KEY_STORE_PASSWORDprotected static final java.lang.String HTTP_SERVER_KEY_STORE_PASSWORD - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_TRUST_STORE_PATHprotected static final java.lang.String HTTP_SERVER_TRUST_STORE_PATH - See Also:
- Constant Field Values
 
 - 
HTTP_SERVER_TRUST_STORE_PASSWORDprotected static final java.lang.String HTTP_SERVER_TRUST_STORE_PASSWORD - See Also:
- Constant Field Values
 
 - 
EXTRA_SERVER_COMPONENTSprotected static final java.lang.String EXTRA_SERVER_COMPONENTS - See Also:
- Constant Field Values
 
 - 
IGNORE_EXTRA_SERVER_COMPONENTS_STARTUP_FAILURESprotected static final java.lang.String IGNORE_EXTRA_SERVER_COMPONENTS_STARTUP_FAILURES - See Also:
- Constant Field Values
 
 - 
REGISTRATION_MANAGER_CLASSprotected static final java.lang.String REGISTRATION_MANAGER_CLASS - See Also:
- Constant Field Values
 
 - 
ENABLE_TASK_EXECUTION_STATSprotected static final java.lang.String ENABLE_TASK_EXECUTION_STATS - See Also:
- Constant Field Values
 
 - 
ENTRY_LOG_PER_LEDGER_ENABLEDprotected static final java.lang.String ENTRY_LOG_PER_LEDGER_ENABLED - See Also:
- Constant Field Values
 
 - 
NUMBER_OF_MEMTABLE_FLUSH_THREADSprotected static final java.lang.String NUMBER_OF_MEMTABLE_FLUSH_THREADS - See Also:
- Constant Field Values
 
 - 
ENTRYLOGMAP_ACCESS_EXPIRYTIME_INSECONDSprotected static final java.lang.String ENTRYLOGMAP_ACCESS_EXPIRYTIME_INSECONDS - See Also:
- Constant Field Values
 
 - 
MAXIMUM_NUMBER_OF_ACTIVE_ENTRYLOGSprotected static final java.lang.String MAXIMUM_NUMBER_OF_ACTIVE_ENTRYLOGS - See Also:
- Constant Field Values
 
 - 
ENTRY_LOG_PER_LEDGER_COUNTER_LIMITS_MULT_FACTORprotected static final java.lang.String ENTRY_LOG_PER_LEDGER_COUNTER_LIMITS_MULT_FACTOR - See Also:
- Constant Field Values
 
 - 
LOCAL_CONSISTENCY_CHECK_ON_STARTUPprotected static final java.lang.String LOCAL_CONSISTENCY_CHECK_ON_STARTUP - See Also:
- Constant Field Values
 
 - 
AUTHORIZED_ROLESprotected static final java.lang.String AUTHORIZED_ROLES - See Also:
- Constant Field Values
 
 - 
DATA_INTEGRITY_CHECKING_ENABLEDprotected static final java.lang.String DATA_INTEGRITY_CHECKING_ENABLED - See Also:
- Constant Field Values
 
 - 
DATA_INTEGRITY_COOKIE_STAMPING_ENABLEDprotected static final java.lang.String DATA_INTEGRITY_COOKIE_STAMPING_ENABLED - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ServerConfigurationpublic ServerConfiguration() Construct a default configuration object.
 - 
ServerConfigurationpublic ServerConfiguration(AbstractConfiguration conf) Construct a configuration based on other configuration.- Parameters:
- conf- Other configuration
 
 
- 
 - 
Method Detail- 
getEntryLogSizeLimitpublic long getEntryLogSizeLimit() Get entry logger size limitation.- Returns:
- entry logger size limitation
 
 - 
setEntryLogSizeLimitpublic ServerConfiguration setEntryLogSizeLimit(long logSizeLimit) Set entry logger size limitation.- Parameters:
- logSizeLimit- new log size limitation
 
 - 
isEntryLogFilePreAllocationEnabledpublic boolean isEntryLogFilePreAllocationEnabled() Is entry log file preallocation enabled.- Returns:
- whether entry log file preallocation is enabled or not.
 
 - 
setEntryLogFilePreAllocationEnabledpublic ServerConfiguration setEntryLogFilePreAllocationEnabled(boolean enabled) Enable/disable entry log file preallocation.- Parameters:
- enabled- enable/disable entry log file preallocation.
- Returns:
- server configuration object.
 
 - 
getGcWaitTimepublic long getGcWaitTime() Get Garbage collection wait time. Default value is 10 minutes. The guideline is not to set a too low value for this, if using zookeeper based ledger manager. And it would be nice to align with the average lifecyle time of ledgers in the system.- Returns:
- gc wait time
 
 - 
setGcWaitTimepublic ServerConfiguration setGcWaitTime(long gcWaitTime) Set garbage collection wait time.- Parameters:
- gcWaitTime- gc wait time
- Returns:
- server configuration
 
 - 
getGcOverreplicatedLedgerWaitTimeMillispublic long getGcOverreplicatedLedgerWaitTimeMillis() Get wait time in millis for garbage collection of overreplicated ledgers.- Returns:
- gc wait time
 
 - 
setGcOverreplicatedLedgerWaitTimepublic ServerConfiguration setGcOverreplicatedLedgerWaitTime(long gcWaitTime, java.util.concurrent.TimeUnit unit) Set wait time for garbage collection of overreplicated ledgers. Default: 1 dayA ledger can be overreplicated under the following circumstances: 1. The ledger with few entries has bk1 and bk2 as its ensemble. 2. bk1 crashes. 3. bk3 replicates the ledger from bk2 and updates the ensemble to bk2 and bk3. 4. bk1 comes back up. 5. Now there are 3 copies of the ledger. - Parameters:
- gcWaitTime-
- Returns:
- server configuration
 
 - 
getGcOverreplicatedLedgerMaxConcurrentRequestspublic int getGcOverreplicatedLedgerMaxConcurrentRequests() Max number of concurrent requests in garbage collection of overreplicated ledgers.- Returns:
- max number of concurrent requests
 
 - 
setGcOverreplicatedLedgerMaxConcurrentRequestspublic ServerConfiguration setGcOverreplicatedLedgerMaxConcurrentRequests(int gcOverreplicatedLedgerMaxConcurrentRequests) Max number of concurrent requests in garbage collection of overreplicated ledgers. Default: 1000- Parameters:
- gcOverreplicatedLedgerMaxConcurrentRequests-
- Returns:
- server configuration
 
 - 
getUseTransactionalCompactionpublic boolean getUseTransactionalCompaction() Get whether to use transactional compaction and using a separate log for compaction or not.- Returns:
- use transactional compaction
 
 - 
setUseTransactionalCompactionpublic ServerConfiguration setUseTransactionalCompaction(boolean useTransactionalCompaction) Set whether to use transactional compaction and using a separate log for compaction or not.- Parameters:
- useTransactionalCompaction-
- Returns:
- server configuration
 
 - 
getVerifyMetadataOnGCpublic boolean getVerifyMetadataOnGC() Get whether the bookie is configured to double check prior to gc.- Returns:
- use transactional compaction
 
 - 
setVerifyMetadataOnGcpublic ServerConfiguration setVerifyMetadataOnGc(boolean verifyMetadataOnGC) Set whether the bookie is configured to double check prior to gc.- Parameters:
- verifyMetadataOnGC-
- Returns:
- server configuration
 
 - 
isGcEntryLogMetadataCacheEnabledpublic boolean isGcEntryLogMetadataCacheEnabled() Get whether the bookie is configured to use persistent entrylogMetadataMap.- Returns:
- use persistent entry-log metadata map
 
 - 
setGcEntryLogMetadataCacheEnabledpublic ServerConfiguration setGcEntryLogMetadataCacheEnabled(boolean gcEntryLogMetadataCacheEnabled) Set whether the bookie is configured to use persistent entrylogMetadataMap.- Parameters:
- gcEntryLogMetadataCacheEnabled-
- Returns:
- server configuration
 
 - 
getGcEntryLogMetadataCachePathpublic java.lang.String getGcEntryLogMetadataCachePath() Get directory to persist Entrylog metadata if gcPersistentEntrylogMetadataMapEnabled is true.- Returns:
- entrylog metadata-map persistent store dir path.(default: it creates a sub-directory under each ledger directory with name "metadata-cache". If it set, it only works for one ledger directory configured for ledgerDirectories).
 
 - 
setGcEntryLogMetadataCachePathpublic ServerConfiguration setGcEntryLogMetadataCachePath(java.lang.String gcEntrylogMetadataCachePath) Set directory to persist Entrylog metadata if gcPersistentEntrylogMetadataMapEnabled is true. If it set, it only works for one ledger directory configured for ledgerDirectories. For multi ledgerDirectory configured, keep the default value is the best practice.- Parameters:
- gcEntrylogMetadataCachePath-
- Returns:
- server configuration.
 
 - 
isLocalScrubEnabledpublic boolean isLocalScrubEnabled() Get whether local scrub is enabled.- Returns:
- Whether local scrub is enabled.
 
 - 
getLocalScrubPeriodpublic long getLocalScrubPeriod() Get local scrub interval.- Returns:
- Number of seconds between scrubs, <= 0 for disabled.
 
 - 
setLocalScrubPeriodpublic void setLocalScrubPeriod(long period) Set local scrub period in seconds (<= 0 for disabled). Scrub will be scheduled at delays chosen from the interval (.5 * interval, 1.5 * interval)
 - 
getLocalScrubRateLimitpublic double getLocalScrubRateLimit() Get local scrub rate limit (entries/second).- Returns:
- Max number of entries to scrub per second, 0 for disabled.
 
 - 
setLocalScrubRateLimitpublic void setLocalScrubRateLimit(double scrubRateLimit) Get local scrub rate limit (entries/second).- Parameters:
- scrubRateLimit- Max number of entries per second to scan.
 
 - 
getFlushIntervalpublic int getFlushInterval() Get flush interval. Default value is 10 second. It isn't useful to decrease this value, since ledger storage only checkpoints when an entry logger file is rolled.- Returns:
- flush interval
 
 - 
setFlushIntervalpublic ServerConfiguration setFlushInterval(int flushInterval) Set flush interval.- Parameters:
- flushInterval- Flush Interval
- Returns:
- server configuration
 
 - 
getFlushIntervalInBytespublic long getFlushIntervalInBytes() Set entry log flush interval in bytes.Default is 0. 0 or less disables this feature and effectively flush happens on log rotation. Flushing in smaller chunks but more frequently reduces spikes in disk I/O. Flushing too frequently may also affect performance negatively. - Returns:
- Entry log flush interval in bytes
 
 - 
setFlushIntervalInBytespublic ServerConfiguration setFlushIntervalInBytes(long flushInterval) Set entry log flush interval in bytes.- Parameters:
- flushInterval- in bytes
- Returns:
- server configuration
 
 - 
getDeathWatchIntervalpublic int getDeathWatchInterval() Get bookie death watch interval.- Returns:
- watch interval
 
 - 
getOpenFileLimitpublic int getOpenFileLimit() Get open file limit. Default value is 20000.- Returns:
- max number of files to open
 
 - 
setOpenFileLimitpublic ServerConfiguration setOpenFileLimit(int fileLimit) Set limitation of number of open files.- Parameters:
- fileLimit- Limitation of number of open files.
- Returns:
- server configuration
 
 - 
getPageLimitpublic int getPageLimit() Get limitation number of index pages in ledger cache.- Returns:
- max number of index pages in ledger cache
 
 - 
setPageLimitpublic ServerConfiguration setPageLimit(int pageLimit) Set limitation number of index pages in ledger cache.- Parameters:
- pageLimit- Limitation of number of index pages in ledger cache.
- Returns:
- server configuration
 
 - 
getPageSizepublic int getPageSize() Get page size.- Returns:
- page size in ledger cache
 
 - 
setPageSizepublic ServerConfiguration setPageSize(int pageSize) Set page size.- Parameters:
- pageSize- Page Size
- Returns:
- Server Configuration
- See Also:
- getPageSize()
 
 - 
getFileInfoCacheInitialCapacitypublic int getFileInfoCacheInitialCapacity() Get the minimum total size for the internal file info cache tables. Providing a large enough estimate at construction time avoids the need for expensive resizing operations later, but setting this value unnecessarily high wastes memory.- Returns:
- minimum size of initial file info cache.
 
 - 
setFileInfoCacheInitialCapacitypublic ServerConfiguration setFileInfoCacheInitialCapacity(int initialCapacity) Set the minimum total size for the internal file info cache tables for initialization.- Parameters:
- initialCapacity- Initial capacity of file info cache table.
- Returns:
- server configuration instance.
 
 - 
getFileInfoMaxIdleTimepublic long getFileInfoMaxIdleTime() Get the max idle time allowed for a open file info existed in file info cache. If the file info is idle for a long time, exceed the given time period. The file info will be evicted and closed. If the value is zero, the file info is evicted only when opened files reached openFileLimit.- Returns:
- max idle time of a file info in the file info cache.
- See Also:
- getOpenFileLimit()
 
 - 
setFileInfoMaxIdleTimepublic ServerConfiguration setFileInfoMaxIdleTime(long idleTime) Set the max idle time allowed for a open file info existed in file info cache.- Parameters:
- idleTime- Idle time, in seconds.
- Returns:
- server configuration object.
- See Also:
- getFileInfoMaxIdleTime()
 
 - 
getFileInfoFormatVersionToWritepublic int getFileInfoFormatVersionToWrite() Get fileinfo format version to write.- Returns:
- fileinfo format version to write.
 
 - 
setFileInfoFormatVersionToWritepublic ServerConfiguration setFileInfoFormatVersionToWrite(int version) Set fileinfo format version to write.- Parameters:
- version- fileinfo format version to write.
- Returns:
- server configuration.
 
 - 
getMaxJournalSizeMBpublic long getMaxJournalSizeMB() Max journal file size.- Returns:
- max journal file size
 
 - 
setMaxJournalSizeMBpublic ServerConfiguration setMaxJournalSizeMB(long maxJournalSize) Set new max journal file size.- Parameters:
- maxJournalSize- new max journal file size
- Returns:
- server configuration
 
 - 
getJournalPreAllocSizeMBpublic int getJournalPreAllocSizeMB() How much space should we pre-allocate at a time in the journal.- Returns:
- journal pre-allocation size in MB
 
 - 
getJournalWriteBufferSizeKBpublic int getJournalWriteBufferSizeKB() Size of the write buffers used for the journal.- Returns:
- journal write buffer size in KB
 
 - 
setJournalWriteBufferSizeKBpublic ServerConfiguration setJournalWriteBufferSizeKB(int bufferSizeKB) Set the size of the write buffers used for the journal.- Parameters:
- bufferSizeKB- the size of the write buffer used for the journal, in KB.
- Returns:
- server configuration
 
 - 
getMaxBackupJournalspublic int getMaxBackupJournals() Max number of older journal files kept.- Returns:
- max number of older journal files to kept
 
 - 
setMaxBackupJournalspublic ServerConfiguration setMaxBackupJournals(int maxBackupJournals) Set max number of older journal files to kept.- Parameters:
- maxBackupJournals- Max number of older journal files
- Returns:
- server configuration
 
 - 
getJournalAlignmentSizepublic int getJournalAlignmentSize() All the journal writes and commits should be aligned to given size. If not, zeros will be padded to align to given size.- Returns:
- journal alignment size
 
 - 
setJournalAlignmentSizepublic ServerConfiguration setJournalAlignmentSize(int size) Set journal alignment size.- Parameters:
- size- journal alignment size.
- Returns:
- server configuration.
 
 - 
getJournalFormatVersionToWritepublic int getJournalFormatVersionToWrite() Get journal format version to write.- Returns:
- journal format version to write.
 
 - 
setJournalFormatVersionToWritepublic ServerConfiguration setJournalFormatVersionToWrite(int version) Set journal format version to write.- Parameters:
- version- journal format version to write.
- Returns:
- server configuration.
 
 - 
setJournalQueueSizepublic ServerConfiguration setJournalQueueSize(int journalQueueSize) Set the size of the journal queue.- Parameters:
- journalQueueSize- the max size of journal queue
- Returns:
- server configuration.
 
 - 
getJournalQueueSizepublic int getJournalQueueSize() Get size of journal queue.- Returns:
- the max size of journal queue.
 
 - 
setJournalMaxMemorySizeMbpublic ServerConfiguration setJournalMaxMemorySizeMb(long journalMaxMemorySizeMb) Set the max amount of memory that can be used by the journal.- Parameters:
- journalMaxMemorySizeMb- the max amount of memory for the journal
- Returns:
- server configuration.
 
 - 
getJournalMaxMemorySizeMbpublic long getJournalMaxMemorySizeMb() Get the max amount of memory that can be used by the journal.- Returns:
- the max amount of memory for the journal
 
 - 
setJournalPageCacheFlushIntervalMSecpublic ServerConfiguration setJournalPageCacheFlushIntervalMSec(long journalPageCacheFlushIntervalMSec) Set PageCache flush interval in second.- Returns:
- server configuration.
 
 - 
getJournalPageCacheFlushIntervalMSecpublic long getJournalPageCacheFlushIntervalMSec() Get journal pageCache flush interval.- Returns:
- journal pageCache flush interval.
 
 - 
setJournalChannelProviderpublic ServerConfiguration setJournalChannelProvider(java.lang.String journalChannelProvider) Set JournalChannelProvider classname.- Parameters:
- journalChannelProvider- The JournalChannelProvider classname. The class must implements- FileChannelProviderand no args constructor is needed.
- Returns:
 
 - 
getJournalChannelProviderpublic java.lang.String getJournalChannelProvider() - Returns:
 
 - 
getMaxAddsInProgressLimitpublic int getMaxAddsInProgressLimit() Get max number of adds in progress. 0 == unlimited.- Returns:
- Max number of adds in progress.
 
 - 
setMaxAddsInProgressLimitpublic ServerConfiguration setMaxAddsInProgressLimit(int value) Set max number of adds in progress. 0 == unlimited.- Parameters:
- value- max number of adds in progress.
- Returns:
- server configuration.
 
 - 
getMaxReadsInProgressLimitpublic int getMaxReadsInProgressLimit() Get max number of reads in progress. 0 == unlimited.- Returns:
- Max number of reads in progress.
 
 - 
setMaxReadsInProgressLimitpublic ServerConfiguration setMaxReadsInProgressLimit(int value) Set max number of reads in progress. 0 == unlimited.- Parameters:
- value- max number of reads in progress.
- Returns:
- server configuration.
 
 - 
getCloseChannelOnResponseTimeoutpublic boolean getCloseChannelOnResponseTimeout() Configures action in case if server timed out sending response to the client. true == close the channel and drop response false == drop response Requires waitTimeoutOnBackpressureMs >= 0 otherwise ignored.- Returns:
- value indicating if channel should be closed.
 
 - 
setCloseChannelOnResponseTimeoutpublic ServerConfiguration setCloseChannelOnResponseTimeout(boolean value) Configures action in case if server timed out sending response to the client. true == close the channel and drop response false == drop response Requires waitTimeoutOnBackpressureMs >= 0 otherwise ignored.- Parameters:
- value-
- Returns:
- server configuration.
 
 - 
getWaitTimeoutOnResponseBackpressureMillispublic long getWaitTimeoutOnResponseBackpressureMillis() Timeout controlling wait on response send in case of unresponsive client (i.e. client in long GC etc.)- Returns:
- timeout value negative value disables the feature 0 to allow request to fail immediately Default is -1 (disabled)
 
 - 
setWaitTimeoutOnResponseBackpressureMillispublic ServerConfiguration setWaitTimeoutOnResponseBackpressureMillis(long value) Timeout controlling wait on response send in case of unresponsive client (i.e. client in long GC etc.)- Parameters:
- value- negative value disables the feature 0 to allow request to fail immediately Default is -1 (disabled)
- Returns:
- client configuration.
 
 - 
getBookiePortpublic int getBookiePort() Get bookie port that bookie server listen on.- Returns:
- bookie port
 
 - 
setBookiePortpublic ServerConfiguration setBookiePort(int port) Set new bookie port that bookie server listen on.- Parameters:
- port- Port to listen on
- Returns:
- server configuration
 
 - 
getListeningInterfacepublic java.lang.String getListeningInterface() Get the network interface that the bookie should listen for connections on. If this is null, then the bookie will listen for connections on all interfaces.- Returns:
- the network interface to listen on, e.g. eth0, or null if none is specified
 
 - 
setListeningInterfacepublic ServerConfiguration setListeningInterface(java.lang.String iface) Set the network interface that the bookie should listen on. If not set, the bookie will listen on all interfaces.- Parameters:
- iface- the interface to listen on
 
 - 
getAllowLoopbackpublic boolean getAllowLoopback() Is the bookie allowed to use a loopback interface as its primary interface(i.e. the interface it uses to establish its identity)?By default, loopback interfaces are not allowed as the primary interface. Using a loopback interface as the primary interface usually indicates a configuration error. For example, its fairly common in some VPS setups to not configure a hostname, or to have the hostname resolve to 127.0.0.1. If this is the case, then all bookies in the cluster will establish their identities as 127.0.0.1:3181, and only one will be able to join the cluster. For VPSs configured like this, you should explicitly set the listening interface. - Returns:
- whether a loopback interface can be used as the primary interface
- See Also:
- setListeningInterface(String)
 
 - 
setAllowLoopbackpublic ServerConfiguration setAllowLoopback(boolean allow) Configure the bookie to allow loopback interfaces to be used as the primary bookie interface.- Parameters:
- allow- whether to allow loopback interfaces
- Returns:
- server configuration
- See Also:
- getAllowLoopback()
 
 - 
getBookieIdpublic java.lang.String getBookieId() Get the configured BookieId for the bookie.If present, this setting will take precedence over the automatic BookieId generation, based on Network Addresses. - Returns:
- the configure address to be advertised
- See Also:
- setBookieId(java.lang.String),- getAdvertisedAddress()
 
 - 
setBookieIdpublic ServerConfiguration setBookieId(java.lang.String bookieId) Configure the bookie to advertise a specific BookieId.By default, a bookie will advertise a BookieId computed from the primary network endpoint addresss. - Parameters:
- bookieId- the bookie id
- Returns:
- server configuration
- See Also:
- getBookieId(),- setAdvertisedAddress(java.lang.String)
 
 - 
getAdvertisedAddresspublic java.lang.String getAdvertisedAddress() Get the configured advertised address for the bookie.If present, this setting will take precedence over the setListeningInterface(String)andsetUseHostNameAsBookieID(boolean).- Returns:
- the configure address to be advertised
- See Also:
- setAdvertisedAddress(String)
 
 - 
setAdvertisedAddresspublic ServerConfiguration setAdvertisedAddress(java.lang.String advertisedAddress) Configure the bookie to advertise a specific address.By default, a bookie will advertise either its own IP or hostname, depending on the getUseHostNameAsBookieID()setting.When the advertised is set to a non-empty string, the bookie will register and advertise using this address. If present, this setting will take precedence over the setListeningInterface(String)andsetUseHostNameAsBookieID(boolean).- Parameters:
- advertisedAddress- whether to allow loopback interfaces
- Returns:
- server configuration
- See Also:
- getAdvertisedAddress()
 
 - 
getAllowEphemeralPortspublic boolean getAllowEphemeralPorts() Is the bookie allowed to use an ephemeral port (port 0) as its server port.By default, an ephemeral port is not allowed. Using an ephemeral port as the service port usually indicates a configuration error. However, in unit tests, using ephemeral port will address port conflicts problem and allow running tests in parallel. - Returns:
- whether is allowed to use an ephemeral port.
 
 - 
setAllowEphemeralPortspublic ServerConfiguration setAllowEphemeralPorts(boolean allow) Configure the bookie to allow using an ephemeral port.- Parameters:
- allow- whether to allow using an ephemeral port.
- Returns:
- server configuration
 
 - 
getAllowStorageExpansionpublic boolean getAllowStorageExpansion() Return whether we should allow addition of ledger/index dirs to an existing bookie.- Returns:
- true if the addition is allowed; false otherwise
 
 - 
setAllowStorageExpansionpublic ServerConfiguration setAllowStorageExpansion(boolean val) Change the setting of whether or not we should allow ledger/index dirs to be added to the current set of dirs.- Parameters:
- val- - true if new ledger/index dirs can be added; false otherwise.
- Returns:
- server configuration
 
 - 
getJournalDirNamespublic java.lang.String[] getJournalDirNames() Get dir names to store journal files.- Returns:
- journal dir name
 
 - 
getJournalDirName@Deprecated public java.lang.String getJournalDirName() Deprecated.Get dir name to store journal files.- Returns:
- journal dir name
 
 - 
getJournalDirNameWithoutDefaultpublic java.lang.String getJournalDirNameWithoutDefault() Get dir name to store journal files.- Returns:
- journal dir name
 
 - 
setJournalDirNamepublic ServerConfiguration setJournalDirName(java.lang.String journalDir) Set dir name to store journal files.- Parameters:
- journalDir- Dir to store journal files
- Returns:
- server configuration
 
 - 
setJournalDirsNamepublic ServerConfiguration setJournalDirsName(java.lang.String[] journalDirs) Set dir names to store journal files.- Parameters:
- journalDirs- Dir to store journal files
- Returns:
- server configuration
 
 - 
getJournalDirspublic java.io.File[] getJournalDirs() Get dirs to store journal files.- Returns:
- journal dirs, if no journal dir provided return null
 
 - 
getLedgerDirWithoutDefaultpublic java.lang.String[] getLedgerDirWithoutDefault() Get dir names to store ledger data.- Returns:
- ledger dir names, if not provided return null
 
 - 
getLedgerDirNamespublic java.lang.String[] getLedgerDirNames() Get dir names to store ledger data.- Returns:
- ledger dir names, if not provided return null
 
 - 
setLedgerDirNamespublic ServerConfiguration setLedgerDirNames(java.lang.String[] ledgerDirs) Set dir names to store ledger data.- Parameters:
- ledgerDirs- Dir names to store ledger data
- Returns:
- server configuration
 
 - 
getLedgerDirspublic java.io.File[] getLedgerDirs() Get dirs that stores ledger data.- Returns:
- ledger dirs
 
 - 
getIndexDirNamespublic java.lang.String[] getIndexDirNames() Get dir name to store index files.- Returns:
- ledger index dir name, if no index dirs provided return null
 
 - 
setIndexDirNamepublic ServerConfiguration setIndexDirName(java.lang.String[] indexDirs) Set dir name to store index files.- Parameters:
- indexDirs- Index dir names
- Returns:
- server configuration.
 
 - 
getIndexDirspublic java.io.File[] getIndexDirs() Get index dir to store ledger index files.- Returns:
- index dirs, if no index dirs provided return null
 
 - 
getServerTcpNoDelaypublic boolean getServerTcpNoDelay() Is tcp connection no delay.- Returns:
- tcp socket nodelay setting
 
 - 
setServerTcpNoDelaypublic ServerConfiguration setServerTcpNoDelay(boolean noDelay) Set socket nodelay setting.- Parameters:
- noDelay- NoDelay setting
- Returns:
- server configuration
 
 - 
getServerNumIOThreadspublic int getServerNumIOThreads() Get the number of IO threads. This is the number of threads used by Netty to handle TCP connections.- Returns:
- the number of IO threads
 
 - 
setServerNumIOThreadspublic ServerConfiguration setServerNumIOThreads(int numThreads) Set the number of IO threads.This is the number of threads used by Netty to handle TCP connections. - Parameters:
- numThreads- number of IO threads used for bookkeeper
- Returns:
- client configuration
- See Also:
- getServerNumIOThreads()
 
 - 
getServerSockLingerpublic int getServerSockLinger() Timeout to drain the socket on close.- Returns:
- socket linger setting
 
 - 
setServerSockLingerpublic ServerConfiguration setServerSockLinger(int linger) Set socket linger timeout on close.When enabled, a close or shutdown will not return until all queued messages for the socket have been successfully sent or the linger timeout has been reached. Otherwise, the call returns immediately and the closing is done in the background. - Parameters:
- linger- NoDelay setting
- Returns:
- server configuration
 
 - 
getServerSockKeepalivepublic boolean getServerSockKeepalive() Get socket keepalive.- Returns:
- socket keepalive setting
 
 - 
setServerSockKeepalivepublic ServerConfiguration setServerSockKeepalive(boolean keepalive) Set socket keepalive setting.This setting is used to send keep-alive messages on connection-oriented sockets. - Parameters:
- keepalive- KeepAlive setting
- Returns:
- server configuration
 
 - 
getZkRetryBackoffStartMspublic int getZkRetryBackoffStartMs() Get zookeeper client backoff retry start time in millis.- Returns:
- zk backoff retry start time in millis.
 
 - 
setZkRetryBackoffStartMspublic ServerConfiguration setZkRetryBackoffStartMs(int retryMs) Set zookeeper client backoff retry start time in millis.- Parameters:
- retryMs- backoff retry start time in millis.
- Returns:
- server configuration.
 
 - 
getZkRetryBackoffMaxMspublic int getZkRetryBackoffMaxMs() Get zookeeper client backoff retry max time in millis.- Returns:
- zk backoff retry max time in millis.
 
 - 
setZkRetryBackoffMaxMspublic ServerConfiguration setZkRetryBackoffMaxMs(int retryMs) Set zookeeper client backoff retry max time in millis.- Parameters:
- retryMs- backoff retry max time in millis.
- Returns:
- server configuration.
 
 - 
isStatisticsEnabledpublic boolean isStatisticsEnabled() Is statistics enabled.- Returns:
- is statistics enabled
 
 - 
setStatisticsEnabledpublic ServerConfiguration setStatisticsEnabled(boolean enabled) Turn on/off statistics.- Parameters:
- enabled- Whether statistics enabled or not.
- Returns:
- server configuration
 
 - 
setForceAllowCompactionpublic ServerConfiguration setForceAllowCompaction(boolean enable) Allow manually force compact the entry log or not.- Parameters:
- enable- whether allow manually force compact the entry log or not.
- Returns:
- service configuration.
 
 - 
isForceAllowCompactionpublic boolean isForceAllowCompaction() The force compaction is allowed or not when disabling the entry log compaction.- Returns:
- the force compaction is allowed or not when disabling the entry log compaction.
 
 - 
getMinorCompactionThresholdpublic double getMinorCompactionThreshold() Get threshold of minor compaction.For those entry log files whose remaining size percentage reaches below this threshold will be compacted in a minor compaction. If it is set to less than zero, the minor compaction is disabled. - Returns:
- threshold of minor compaction
 
 - 
setMinorCompactionThresholdpublic ServerConfiguration setMinorCompactionThreshold(double threshold) Set threshold of minor compaction.- Parameters:
- threshold- Threshold for minor compaction
- Returns:
- server configuration
- See Also:
- getMinorCompactionThreshold()
 
 - 
getMajorCompactionThresholdpublic double getMajorCompactionThreshold() Get threshold of major compaction.For those entry log files whose remaining size percentage reaches below this threshold will be compacted in a major compaction. If it is set to less than zero, the major compaction is disabled. - Returns:
- threshold of major compaction
 
 - 
setMajorCompactionThresholdpublic ServerConfiguration setMajorCompactionThreshold(double threshold) Set threshold of major compaction.- Parameters:
- threshold- Threshold of major compaction
- Returns:
- server configuration
- See Also:
- getMajorCompactionThreshold()
 
 - 
getMajorCompactionMaxTimeMillispublic long getMajorCompactionMaxTimeMillis() Get the maximum milliseconds to run major compaction. If <= 0 the thread will run until all compaction is completed.- Returns:
- limit The number of milliseconds to run compaction.
 
 - 
setMajorCompactionMaxTimeMillispublic ServerConfiguration setMajorCompactionMaxTimeMillis(long majorCompactionMaxTimeMillis) Set the maximum milliseconds to run major compaction. If <= 0 the thread will run until all compaction is completed.- Parameters:
- majorCompactionMaxTimeMillis- The number of milliseconds to run compaction.
- Returns:
- server configuration
- See Also:
- getMajorCompactionMaxTimeMillis()
 
 - 
getMinorCompactionIntervalpublic long getMinorCompactionInterval() Get interval to run minor compaction, in seconds.If it is set to less than zero, the minor compaction is disabled. - Returns:
- threshold of minor compaction
 
 - 
setMinorCompactionIntervalpublic ServerConfiguration setMinorCompactionInterval(long interval) Set interval to run minor compaction.- Parameters:
- interval- Interval to run minor compaction
- Returns:
- server configuration
- See Also:
- getMinorCompactionInterval()
 
 - 
getMajorCompactionIntervalpublic long getMajorCompactionInterval() Get interval to run major compaction, in seconds.If it is set to less than zero, the major compaction is disabled. - Returns:
- high water mark
 
 - 
setMajorCompactionIntervalpublic ServerConfiguration setMajorCompactionInterval(long interval) Set interval to run major compaction.- Parameters:
- interval- Interval to run major compaction
- Returns:
- server configuration
- See Also:
- getMajorCompactionInterval()
 
 - 
getMinorCompactionMaxTimeMillispublic long getMinorCompactionMaxTimeMillis() Get the maximum milliseconds to run minor compaction. If <= 0 the thread will run until all compaction is completed.- Returns:
- limit The number of milliseconds to run compaction.
 
 - 
setMinorCompactionMaxTimeMillispublic ServerConfiguration setMinorCompactionMaxTimeMillis(long minorCompactionMaxTimeMillis) Set the maximum milliseconds to run minor compaction. If <= 0 the thread will run until all compaction is completed.- Parameters:
- minorCompactionMaxTimeMillis- The number of milliseconds to run compaction.
- Returns:
- server configuration
- See Also:
- getMinorCompactionMaxTimeMillis()
 
 - 
getIsForceGCAllowWhenNoSpacepublic boolean getIsForceGCAllowWhenNoSpace() Get whether force compaction is allowed when disk full or almost full.Force GC may get some space back, but may also fill up disk space more quickly. This is because new log files are created before GC, while old garbage log files deleted after GC. - Returns:
- true - do force GC when disk full, false - suspend GC when disk full.
 
 - 
setIsForceGCAllowWhenNoSpacepublic ServerConfiguration setIsForceGCAllowWhenNoSpace(boolean force) Set whether force GC is allowed when disk full or almost full.- Parameters:
- force- true to allow force GC; false to suspend GC
- Returns:
- ServerConfiguration
 
 - 
setOpenLedgerRereplicationGracePeriodpublic void setOpenLedgerRereplicationGracePeriod(java.lang.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.The grace period allows the writer to detect the bookie failure, and and start writing to another ledger fragment. If the writer writes nothing during the grace period, the rereplication worker assumes that it has crashed and therefore fences the ledger, preventing any further writes to that ledger. - Parameters:
- waitTime- time to wait before replicating ledger fragment
- See Also:
- BookKeeper.openLedger(long, org.apache.bookkeeper.client.BookKeeper.DigestType, byte[])
 
 - 
getOpenLedgerRereplicationGracePeriodpublic 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.- Returns:
- long
 
 - 
setLockReleaseOfFailedLedgerGracePeriodpublic void setLockReleaseOfFailedLedgerGracePeriod(java.lang.String waitTime) Set the grace period, in milliseconds, which the replication worker has to wait before releasing the lock after it failed to replicate a ledger. For the first ReplicationWorker.NUM_OF_EXPONENTIAL_BACKOFF_RETRIALS failures it will do exponential backoff then it will bound at LOCK_RELEASE_OF_FAILED_LEDGER_GRACE_PERIOD.On replication failure, instead of releasing the lock immediately after failed attempt, it will hold under replicated ledger lock for the grace period and then it will release the lock. - Parameters:
- waitTime-
 
 - 
getLockReleaseOfFailedLedgerGracePeriodpublic long getLockReleaseOfFailedLedgerGracePeriod() Get the grace period, in milliseconds, which the replication worker has to wait before releasing the lock after it failed to replicate a ledger. For the first ReplicationWorker.NUM_OF_EXPONENTIAL_BACKOFF_RETRIALS failures it will do exponential backoff then it will bound at LOCK_RELEASE_OF_FAILED_LEDGER_GRACE_PERIOD.- Returns:
 
 - 
getReadBufferBytespublic int getReadBufferBytes() Get the number of bytes we should use as capacity for org.apache.bookkeeper.bookie.BufferedReadChannel. Default is 512 bytes- Returns:
- read buffer size
 
 - 
setReadBufferBytespublic ServerConfiguration setReadBufferBytes(int readBufferSize) Set the number of bytes we should use as capacity for org.apache.bookkeeper.bookie.BufferedReadChannel.- Parameters:
- readBufferSize- Read Buffer Size
- Returns:
- server configuration
 
 - 
setNumAddWorkerThreadspublic ServerConfiguration setNumAddWorkerThreads(int numThreads) Set the number of threads that would handle write requests.- Parameters:
- numThreads- number of threads to handle write requests.
- Returns:
- server configuration
 
 - 
getNumAddWorkerThreadspublic int getNumAddWorkerThreads() Get the number of threads that should handle write requests.- Returns:
- the number of threads that handle write requests.
 
 - 
setNumLongPollWorkerThreadspublic ServerConfiguration setNumLongPollWorkerThreads(int numThreads) Set the number of threads that should handle long poll requests.- Parameters:
- numThreads- number of threads to handle long poll requests.
- Returns:
- server configuration
 
 - 
getNumLongPollWorkerThreadspublic int getNumLongPollWorkerThreads() Get the number of threads that should handle long poll requests.If the number of threads is zero or negative, bookie will fallback to use read threads. If there is no read threads used, it will create a thread pool with Runtime.availableProcessors()threads.- Returns:
- the number of threads that should handle long poll requests, default value is 0.
 
 - 
setNumHighPriorityWorkerThreadspublic ServerConfiguration setNumHighPriorityWorkerThreads(int numThreads) Set the number of threads that should be used for high priority requests (i.e. recovery reads and adds, and fencing)- Parameters:
- numThreads- number of threads to handle high priority requests.
- Returns:
- server configuration
 
 - 
getNumHighPriorityWorkerThreadspublic int getNumHighPriorityWorkerThreads() Get the number of threads that should be used for high priority requests (i.e. recovery reads and adds, and fencing)- Returns:
 
 - 
setReadWorkerThreadsThrottlingEnabledpublic ServerConfiguration setReadWorkerThreadsThrottlingEnabled(boolean throttle) Use auto-throttling of the read-worker threads. This is done to ensure the bookie is not using unlimited amount of memory to respond to read-requests.- Parameters:
- throttle- whether to throttle the read workers threads
- Returns:
- server configuration
 
 - 
isReadWorkerThreadsThrottlingEnabledpublic boolean isReadWorkerThreadsThrottlingEnabled() Get the auto-throttling status of the read-worker threads.- Returns:
 
 - 
setNumReadWorkerThreadspublic ServerConfiguration setNumReadWorkerThreads(int numThreads) Set the number of threads that would handle read requests.- Parameters:
- numThreads- Number of threads to handle read requests.
- Returns:
- server configuration
 
 - 
getNumReadWorkerThreadspublic int getNumReadWorkerThreads() Get the number of threads that should handle read requests.
 - 
setRequestTimerTickDurationMspublic ServerConfiguration setRequestTimerTickDurationMs(int tickDuration) Set the tick duration in milliseconds.- Parameters:
- tickDuration- tick duration in milliseconds.
- Returns:
- server configuration
 
 - 
setMaxPendingReadRequestPerThreadpublic ServerConfiguration setMaxPendingReadRequestPerThread(int maxPendingReadRequestsPerThread) Set the max number of pending read requests for each read worker thread. After the quota is reached, new requests will be failed immediately.- Parameters:
- maxPendingReadRequestsPerThread-
- Returns:
- server configuration
 
 - 
getMaxPendingReadRequestPerThreadpublic int getMaxPendingReadRequestPerThread() If read workers threads are enabled, limit the number of pending requests, to avoid the executor queue to grow indefinitely (default: 10000 entries).
 - 
setMaxPendingAddRequestPerThreadpublic ServerConfiguration setMaxPendingAddRequestPerThread(int maxPendingAddRequestsPerThread) Set the max number of pending add requests for each add worker thread. After the quota is reached, new requests will be failed immediately.- Parameters:
- maxPendingAddRequestsPerThread-
- Returns:
- server configuration
 
 - 
getMaxPendingAddRequestPerThreadpublic int getMaxPendingAddRequestPerThread() If add workers threads are enabled, limit the number of pending requests, to avoid the executor queue to grow indefinitely (default: 10000 entries).
 - 
getRequestTimerTickDurationMspublic int getRequestTimerTickDurationMs() Get the tick duration in milliseconds.- Returns:
 
 - 
setRequestTimerNumTickspublic ServerConfiguration setRequestTimerNumTicks(int tickCount) Set the number of ticks per wheel for the request timer.- Parameters:
- tickCount- number of ticks per wheel for the request timer.
- Returns:
- server configuration
 
 - 
getRequestTimerNumTickspublic int getRequestTimerNumTicks() Get the number of ticks per wheel for the request timer.- Returns:
 
 - 
getWriteBufferBytespublic int getWriteBufferBytes() Get the number of bytes used as capacity for the write buffer. Default is 64KB. NOTE: Make sure this value is greater than the maximum message size.- Returns:
- the size of the write buffer in bytes
 
 - 
setWriteBufferBytespublic ServerConfiguration setWriteBufferBytes(int writeBufferBytes) Set the number of bytes used as capacity for the write buffer.- Parameters:
- writeBufferBytes- Write Buffer Bytes
- Returns:
- server configuration
 
 - 
setNumJournalCallbackThreadspublic ServerConfiguration setNumJournalCallbackThreads(int numThreads) Set the number of threads that would handle journal callbacks.- Parameters:
- numThreads- number of threads to handle journal callbacks.
- Returns:
- server configuration
 
 - 
getNumJournalCallbackThreadspublic int getNumJournalCallbackThreads() Get the number of threads that should handle journal callbacks.- Returns:
- the number of threads that handle journal callbacks.
 
 - 
setSortedLedgerStorageEnabledpublic ServerConfiguration setSortedLedgerStorageEnabled(boolean enabled) Deprecated.UsesetLedgerStorageClass(String)to configure the implementation classSet sorted-ledger storage enabled or not.- Parameters:
- enabled-
 
 - 
getSortedLedgerStorageEnabledpublic boolean getSortedLedgerStorageEnabled() Check if sorted-ledger storage enabled (default true).- Returns:
- true if sorted ledger storage is enabled, false otherwise
 
 - 
getSkipListSizeLimitpublic long getSkipListSizeLimit() Get skip list data size limitation (default 64MB). Max value is 1,073,741,823- Returns:
- skip list data size limitation
 
 - 
setSkipListSizeLimitpublic ServerConfiguration setSkipListSizeLimit(int size) Set skip list size limit.- Parameters:
- size- skip list size limit.
- Returns:
- server configuration object.
 
 - 
getSkipListArenaChunkSizepublic int getSkipListArenaChunkSize() Get the number of bytes we should use as chunk allocation for org.apache.bookkeeper.bookie.SkipListArena. Default is 4 MB- Returns:
- the number of bytes to use for each chunk in the skiplist arena
 
 - 
setSkipListArenaChunkSizepublic ServerConfiguration setSkipListArenaChunkSize(int size) Set the number of bytes we used as chunk allocation for org.apache.bookkeeper.bookie.SkipListArena.- Parameters:
- size- chunk size.
- Returns:
- server configuration object.
 
 - 
getSkipListArenaMaxAllocSizepublic int getSkipListArenaMaxAllocSize() Get the max size we should allocate from the skiplist arena. Allocations larger than this should be allocated directly by the VM to avoid fragmentation.- Returns:
- max size allocatable from the skiplist arena (Default is 128 KB)
 
 - 
setSkipListArenaMaxAllocSizepublic ServerConfiguration setSkipListArenaMaxAllocSize(int size) Set the max size we should allocate from the skiplist arena. Allocations larger than this should be allocated directly by the VM to avoid fragmentation.- Parameters:
- size- max alloc size.
- Returns:
- server configuration object.
 
 - 
getJournalSyncDatapublic boolean getJournalSyncData() Should the data be fsynced on journal before acknowledgment.Default is true - Returns:
 
 - 
getJournalWriteDatapublic boolean getJournalWriteData() Should the data be written to journal before acknowledgment.Default is true - Returns:
 
 - 
setJournalWriteDatapublic ServerConfiguration setJournalWriteData(boolean journalWriteData) Should the data be written to journal before acknowledgment.Default is true - Returns:
 
 - 
setJournalSyncDatapublic ServerConfiguration setJournalSyncData(boolean syncData) Enable or disable journal syncs.By default, data sync is enabled to guarantee durability of writes. Beware: while disabling data sync in the Bookie journal might improve the bookie write performance, it will also introduce the possibility of data loss. With no sync, the journal entries are written in the OS page cache but not flushed to disk. In case of power failure, the affected bookie might lose the unflushed data. If the ledger is replicated to multiple bookies, the chances of data loss are reduced though still present. - Parameters:
- syncData- whether to sync data on disk before acknowledgement
- Returns:
- server configuration object
 
 - 
getJournalAdaptiveGroupWritespublic boolean getJournalAdaptiveGroupWrites() Should we group journal force writes.- Returns:
- group journal force writes
 
 - 
setJournalAdaptiveGroupWritespublic ServerConfiguration setJournalAdaptiveGroupWrites(boolean enabled) Enable/disable group journal force writes.- Parameters:
- enabled- flag to enable/disable group journal force writes
 
 - 
getJournalMaxGroupWaitMSecpublic long getJournalMaxGroupWaitMSec() Maximum latency to impose on a journal write to achieve grouping. Default is 2ms.- Returns:
- max wait for grouping
 
 - 
setJournalMaxGroupWaitMSecpublic ServerConfiguration setJournalMaxGroupWaitMSec(long journalMaxGroupWaitMSec) Sets the maximum latency to impose on a journal write to achieve grouping.- Parameters:
- journalMaxGroupWaitMSec- maximum time to wait in milliseconds.
- Returns:
- server configuration.
 
 - 
getJournalBufferedWritesThresholdpublic long getJournalBufferedWritesThreshold() Maximum bytes to buffer to impose on a journal write to achieve grouping.- Returns:
- max bytes to buffer
 
 - 
setJournalBufferedWritesThresholdpublic ServerConfiguration setJournalBufferedWritesThreshold(long maxBytes) Set maximum bytes to buffer to impose on a journal write to achieve grouping.- Parameters:
- maxBytes- maximum bytes to buffer to impose on a journal write
- Returns:
- max bytes to buffer
 
 - 
getJournalBufferedEntriesThresholdpublic long getJournalBufferedEntriesThreshold() Maximum entries to buffer to impose on a journal write to achieve grouping. UsegetJournalBufferedWritesThreshold()if this is set to zero or less than zero.- Returns:
- max entries to buffer.
 
 - 
setJournalBufferedEntriesThresholdpublic ServerConfiguration setJournalBufferedEntriesThreshold(int maxEntries) Set maximum entries to buffer to impose on a journal write to achieve grouping. UsegetJournalBufferedWritesThreshold()set this to zero or less than zero.- Parameters:
- maxEntries- maximum entries to buffer.
- Returns:
- server configuration.
 
 - 
setJournalFlushWhenQueueEmptypublic ServerConfiguration setJournalFlushWhenQueueEmpty(boolean enabled) Set if we should flush the journal when queue is empty.
 - 
getJournalFlushWhenQueueEmptypublic boolean getJournalFlushWhenQueueEmpty() Should we flush the journal when queue is empty.- Returns:
- flush when queue is empty
 
 - 
setReadOnlyModeEnabledpublic ServerConfiguration setReadOnlyModeEnabled(boolean enabled) Set whether the bookie is able to go into read-only mode. If this is set to false, the bookie will shutdown on encountering an error condition.- Parameters:
- enabled- whether to enable read-only mode.
- Returns:
- ServerConfiguration
 
 - 
isReadOnlyModeEnabledpublic boolean isReadOnlyModeEnabled() Get whether read-only mode is enabled. The default is true.- Returns:
- boolean
 
 - 
setDiskUsageWarnThresholdpublic ServerConfiguration setDiskUsageWarnThreshold(float threshold) Set the warning threshold for disk usage.- Parameters:
- threshold- warning threshold to force gc.
- Returns:
- ServerConfiguration
 
 - 
getDiskUsageWarnThresholdpublic float getDiskUsageWarnThreshold() Returns the warning threshold for disk usage. If disk usage goes beyond this, a garbage collection cycle will be forced.- Returns:
- the percentage at which a disk usage warning will trigger
 
 - 
setPersistBookieStatusEnabledpublic ServerConfiguration setPersistBookieStatusEnabled(boolean enabled) Whether to persist the bookie status so that when bookie server restarts, it will continue using the previous status.- Parameters:
- enabled- - true if persist the bookie status. Otherwise false.
- Returns:
- ServerConfiguration
 
 - 
isPersistBookieStatusEnabledpublic boolean isPersistBookieStatusEnabled() Get whether to persist the bookie status so that when bookie server restarts, it will continue using the previous status.- Returns:
- true - if need to start a bookie in read only mode. Otherwise false.
 
 - 
setDiskUsageThresholdpublic 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.- Parameters:
- threshold- threshold to declare a disk full
- Returns:
- ServerConfiguration
 
 - 
getDiskUsageThresholdpublic float getDiskUsageThreshold() Returns disk free space threshold. By default it is 0.95.- Returns:
- the percentage at which a disk will be considered full
 
 - 
setDiskLowWaterMarkUsageThresholdpublic ServerConfiguration setDiskLowWaterMarkUsageThreshold(float threshold) Set the disk free space low water mark threshold. Disk is considered full when usage threshold is exceeded. Disk returns back to non-full state when usage is below low water mark threshold. This prevents it from going back and forth between these states frequently when concurrent writes and compaction are happening. This also prevent bookie from switching frequently between read-only and read-writes states in the same cases.- Parameters:
- threshold- threshold to declare a disk full
- Returns:
- ServerConfiguration
 
 - 
getDiskLowWaterMarkUsageThresholdpublic float getDiskLowWaterMarkUsageThreshold() Returns disk free space low water mark threshold. By default it is the same as usage threshold (for backwards-compatibility).- Returns:
- the percentage below which a disk will NOT be considered full
 
 - 
setDiskCheckIntervalpublic ServerConfiguration setDiskCheckInterval(int interval) Set the disk checker interval to monitor ledger disk space.- Parameters:
- interval- interval between disk checks for space.
- Returns:
- ServerConfiguration
 
 - 
getDiskCheckIntervalpublic int getDiskCheckInterval() Get the disk checker interval.- Returns:
- int
 
 - 
setAuditorPeriodicCheckIntervalpublic void setAuditorPeriodicCheckInterval(long interval) Set the regularity at which the auditor will run a check of all ledgers. This should not be run very often, and at most, once a day. Setting this to 0 will completely disable the periodic check.- Parameters:
- interval- The interval in seconds. e.g. 86400 = 1 day, 604800 = 1 week
 
 - 
getAuditorPeriodicCheckIntervalpublic long getAuditorPeriodicCheckInterval() Get the regularity at which the auditor checks all ledgers.- Returns:
- The interval in seconds. Default is 604800 (1 week).
 
 - 
setAuditorPeriodicBookieCheckIntervalpublic void setAuditorPeriodicBookieCheckInterval(long interval) Set the interval between auditor bookie checks. The auditor bookie check, checks ledger metadata to see which bookies contain entries for each ledger. If a bookie which should contain entries is unavailable, then the ledger containing that entry is marked for recovery. Setting this to 0 disabled the periodic check. Bookie checks will still run when a bookie fails.- Parameters:
- interval- The period in seconds.
 
 - 
getAuditorPeriodicBookieCheckIntervalpublic long getAuditorPeriodicBookieCheckInterval() Get the interval between auditor bookie check runs.- Returns:
- the interval between bookie check runs, in seconds. Default is 86400 (= 1 day)
- See Also:
- setAuditorPeriodicBookieCheckInterval(long)
 
 - 
setAuditorPeriodicPlacementPolicyCheckIntervalpublic void setAuditorPeriodicPlacementPolicyCheckInterval(long interval) Sets the regularity/interval at which the auditor will run a placement policy check of all ledgers, which are closed. This should not be run very often, and should be run at most once a day. Setting this to 0 will completely disable the periodic metadata check.- Parameters:
- interval- The interval in seconds. e.g. 86400 = 1 day, 604800 = 1 week
 
 - 
getAuditorPeriodicPlacementPolicyCheckIntervalpublic long getAuditorPeriodicPlacementPolicyCheckInterval() Get the regularity at which the auditor does placement policy check of all ledgers, which are closed.- Returns:
- The interval in seconds. By default it is disabled.
 
 - 
setUnderreplicatedLedgerRecoveryGracePeriodpublic void setUnderreplicatedLedgerRecoveryGracePeriod(long gracePeriod) Sets the grace period (in seconds) for underreplicated ledgers recovery. If ledger is marked underreplicated for more than this period then it will be reported by placementPolicyCheck in Auditor. Setting this to 0 will disable this check.- Parameters:
- gracePeriod- The interval in seconds. e.g. 3600 = 1 hour
 
 - 
getUnderreplicatedLedgerRecoveryGracePeriodpublic long getUnderreplicatedLedgerRecoveryGracePeriod() Gets the grace period (in seconds) for underreplicated ledgers recovery. If ledger is marked underreplicated for more than this period then it will be reported by placementPolicyCheck in Auditor. Setting this to 0 will disable this check.- Returns:
- The interval in seconds. By default it is disabled.
 
 - 
setAuditorPeriodicReplicasCheckIntervalpublic void setAuditorPeriodicReplicasCheckInterval(long interval) Sets the interval at which the auditor will run a replicas check of all ledgers. This should not be run very often since it validates availability of replicas of all ledgers by querying bookies. Setting this to 0 will disable the periodic replicas check.- Parameters:
- interval- The interval in seconds. e.g. 86400 = 1 day, 604800 = 1 week
 
 - 
getAuditorPeriodicReplicasCheckIntervalpublic long getAuditorPeriodicReplicasCheckInterval() Get the interval at which the auditor does replicas check of all ledgers.- Returns:
- The interval in seconds. By default it is disabled.
 
 - 
getAuditorMaxNumberOfConcurrentOpenLedgerOperationspublic int getAuditorMaxNumberOfConcurrentOpenLedgerOperations() Get the semaphore limit value of getting ledger from zookeeper in auto recovery.- Returns:
- The semaphore value. By default it is 500.
 
 - 
setAuditorMaxNumberOfConcurrentOpenLedgerOperationspublic void setAuditorMaxNumberOfConcurrentOpenLedgerOperations(int semaphore) Set the semaphore limit value for getting ledger from zookeeper in auto recovery.- Parameters:
- semaphore-
 
 - 
getAuditorAcquireConcurrentOpenLedgerOperationsTimeoutMSecpublic int getAuditorAcquireConcurrentOpenLedgerOperationsTimeoutMSec() Get the acquire concurrent open ledger operations timeout.- Returns:
- The timeout values. By default it is 120000ms
 
 - 
setAuditorAcquireConcurrentOpenLedgerOperationsTimeoutMSecpublic void setAuditorAcquireConcurrentOpenLedgerOperationsTimeoutMSec(int timeoutMs) Set the acquire concurrent open ledger operations timeout.- Parameters:
- timeoutMs-
 
 - 
setAuditorLedgerVerificationPercentagepublic ServerConfiguration setAuditorLedgerVerificationPercentage(long auditorLedgerVerificationPercentage) Set what percentage of a ledger (fragment)'s entries will be verified. 0 - only the first and last entry of each ledger fragment would be verified 100 - the entire ledger fragment would be verified anything else - randomly picked entries from over the fragment would be verifiec- Parameters:
- auditorLedgerVerificationPercentage- The verification proportion as a percentage
- Returns:
- ServerConfiguration
 
 - 
getAuditorLedgerVerificationPercentagepublic long getAuditorLedgerVerificationPercentage() Get what percentage of a ledger (fragment)'s entries will be verified.- Returns:
- percentage of a ledger (fragment)'s entries will be verified. Default is 0.
- See Also:
- setAuditorLedgerVerificationPercentage(long)
 
 - 
setAutoRecoveryDaemonEnabledpublic ServerConfiguration setAutoRecoveryDaemonEnabled(boolean enabled) Sets that whether the auto-recovery service can start along with Bookie server itself or not.- Parameters:
- enabled- - true if need to start auto-recovery service. Otherwise false.
- Returns:
- ServerConfiguration
 
 - 
isAutoRecoveryDaemonEnabledpublic boolean isAutoRecoveryDaemonEnabled() Get whether the Bookie itself can start auto-recovery service also or not.- Returns:
- true - if Bookie should start auto-recovery service along with it. false otherwise.
 
 - 
getLostBookieRecoveryDelaypublic int getLostBookieRecoveryDelay() Get how long to delay the recovery of ledgers of a lost bookie.- Returns:
- delay interval in seconds
 
 - 
setLostBookieRecoveryDelaypublic void setLostBookieRecoveryDelay(int interval) Set the delay interval for starting recovery of a lost bookie.
 - 
getRwRereplicateBackoffMspublic int getRwRereplicateBackoffMs() Get how long to backoff when encountering exception on rereplicating a ledger.- Returns:
- backoff time in milliseconds
 
 - 
setRwRereplicateBackoffMspublic void setRwRereplicateBackoffMs(int backoffMs) Set how long to backoff when encountering exception on rereplicating a ledger.- Parameters:
- backoffMs- backoff time in milliseconds
 
 - 
setForceReadOnlyBookiepublic ServerConfiguration setForceReadOnlyBookie(boolean enabled) Sets that whether force start a bookie in readonly mode.- Parameters:
- enabled- - true if need to start a bookie in read only mode. Otherwise false.
- Returns:
- ServerConfiguration
 
 - 
isForceReadOnlyBookiepublic boolean isForceReadOnlyBookie() Get whether the Bookie is force started in read only mode or not.- Returns:
- true - if need to start a bookie in read only mode. Otherwise false.
 
 - 
getIsThrottleByBytespublic boolean getIsThrottleByBytes() Get whether use bytes to throttle garbage collector compaction or not.- Returns:
- true - use Bytes, false - use Entries.
 
 - 
setIsThrottleByBytespublic ServerConfiguration setIsThrottleByBytes(boolean byBytes) Set whether use bytes to throttle garbage collector compaction or not.- Parameters:
- byBytes- true to use by bytes; false to use by entries
- Returns:
- ServerConfiguration
 
 - 
getCompactionMaxOutstandingRequestspublic int getCompactionMaxOutstandingRequests() Get the maximum number of entries which can be compacted without flushing. Default is 100,000.- Returns:
- the maximum number of unflushed entries
 
 - 
setCompactionMaxOutstandingRequestspublic ServerConfiguration setCompactionMaxOutstandingRequests(int maxOutstandingRequests) Set the maximum number of entries which can be compacted without flushing.When compacting, the entries are written to the entrylog and the new offsets are cached in memory. Once the entrylog is flushed the index is updated with the new offsets. This parameter controls the number of entries added to the entrylog before a flush is forced. A higher value for this parameter means more memory will be used for offsets. Each offset consists of 3 longs. This parameter should _not_ be modified unless you know what you're doing. The default is 100,000. - Parameters:
- maxOutstandingRequests- number of entries to compact before flushing
- Returns:
- ServerConfiguration
 
 - 
getCompactionRate@Deprecated public int getCompactionRate() Deprecated.replaced bygetCompactionRateByEntries()Get the rate of compaction adds. Default is 1,000.- Returns:
- rate of compaction (adds per second)
 
 - 
setCompactionRatepublic ServerConfiguration setCompactionRate(int rate) Set the rate of compaction adds.- Parameters:
- rate- rate of compaction adds (adds entries per second)
- Returns:
- ServerConfiguration
 
 - 
getCompactionRateByEntriespublic int getCompactionRateByEntries() Get the rate of compaction adds. Default is 1,000.- Returns:
- rate of compaction (adds entries per second)
 
 - 
setCompactionRateByEntriespublic ServerConfiguration setCompactionRateByEntries(int rate) Set the rate of compaction adds.- Parameters:
- rate- rate of compaction adds (adds entries per second)
- Returns:
- ServerConfiguration
 
 - 
getCompactionRateByBytespublic int getCompactionRateByBytes() Get the rate of compaction adds. Default is 1,000,000.- Returns:
- rate of compaction (adds bytes per second)
 
 - 
setCompactionRateByBytespublic ServerConfiguration setCompactionRateByBytes(int rate) Set the rate of compaction adds.- Parameters:
- rate- rate of compaction adds (adds bytes per second)
- Returns:
- ServerConfiguration
 
 - 
getJournalRemovePagesFromCache@Beta public boolean getJournalRemovePagesFromCache() Should we remove pages from page cache after force write.- Returns:
- remove pages from cache
 
 - 
setJournalRemovePagesFromCachepublic ServerConfiguration setJournalRemovePagesFromCache(boolean enabled) Sets that whether should we remove pages from page cache after force write.- Parameters:
- enabled- - true if we need to remove pages from page cache. otherwise, false
- Returns:
- ServerConfiguration
 
 - 
getLedgerStorageClasspublic java.lang.String getLedgerStorageClass() 
 - 
setLedgerStorageClasspublic ServerConfiguration setLedgerStorageClass(java.lang.String ledgerStorageClass) Set theLedgerStorageimplementation class name.- Parameters:
- ledgerStorageClass- the class name
- Returns:
- ServerConfiguration
 
 - 
getUseHostNameAsBookieIDpublic boolean getUseHostNameAsBookieID() Get whether bookie is using hostname for registration and in ledger metadata. Defaults to false.- Returns:
- true, then bookie will be registered with its hostname and hostname will be used in ledger metadata. Otherwise bookie will use its ipaddress
 
 - 
setUseHostNameAsBookieIDpublic ServerConfiguration setUseHostNameAsBookieID(boolean useHostName) Configure the bookie to use its hostname to register with the co-ordination service(eg: zookeeper) and in ledger metadata.- Parameters:
- useHostName- whether to use hostname for registration and in ledgermetadata
- Returns:
- server configuration
- See Also:
- getUseHostNameAsBookieID()
 
 - 
getUseShortHostNamepublic boolean getUseShortHostName() If bookie is using hostname for registration and in ledger metadata then whether to use short hostname or FQDN hostname. Defaults to false.- Returns:
- true, then bookie will be registered with its short hostname and short hostname will be used in ledger metadata. Otherwise bookie will use its FQDN hostname
 
 - 
setUseShortHostNamepublic ServerConfiguration setUseShortHostName(boolean useShortHostName) Configure the bookie to use its short hostname or FQDN hostname to register with the co-ordination service(eg: zookeeper) and in ledger metadata.- Parameters:
- useShortHostName- whether to use short hostname for registration and in ledgermetadata
- Returns:
- server configuration
- See Also:
- getUseShortHostName()
 
 - 
isEnableLocalTransportpublic boolean isEnableLocalTransport() Get whether to listen for local JVM clients. Defaults to false.- Returns:
- true, then bookie will be listen for local JVM clients
 
 - 
setEnableLocalTransportpublic ServerConfiguration setEnableLocalTransport(boolean enableLocalTransport) Configure the bookie to listen for BookKeeper clients executed on the local JVM.- Parameters:
- enableLocalTransport- whether to use listen for local JVM clients
- Returns:
- server configuration
- See Also:
- isEnableLocalTransport()
 
 - 
isDisableServerSocketBindpublic boolean isDisableServerSocketBind() Get whether to disable bind of server-side sockets. Defaults to false.- Returns:
- true, then bookie will not listen for network connections
 
 - 
setDisableServerSocketBindpublic ServerConfiguration setDisableServerSocketBind(boolean disableServerSocketBind) Configure the bookie to disable bind on network interfaces, this bookie will be available only to BookKeeper clients executed on the local JVM.- Parameters:
- disableServerSocketBind- whether to disable binding on network interfaces
- Returns:
- server configuration
- See Also:
- isDisableServerSocketBind()
 
 - 
getStatsProviderClasspublic java.lang.Class<? extends StatsProvider> getStatsProviderClass() throws org.apache.commons.configuration.ConfigurationException Get the stats provider used by bookie.- Returns:
- stats provider class
- Throws:
- org.apache.commons.configuration.ConfigurationException
 
 - 
setStatsProviderClasspublic ServerConfiguration setStatsProviderClass(java.lang.Class<? extends StatsProvider> providerClass) Set the stats provider used by bookie.- Parameters:
- providerClass- stats provider class
- Returns:
- server configuration
 
 - 
validatepublic void validate() throws org.apache.commons.configuration.ConfigurationExceptionValidate the configuration.- Throws:
- org.apache.commons.configuration.ConfigurationException
 
 - 
getRecvByteBufAllocatorSizeInitialpublic int getRecvByteBufAllocatorSizeInitial() Get Recv ByteBuf allocator initial buf size.- Returns:
- initial byteBuf size
 
 - 
setRecvByteBufAllocatorSizeInitialpublic void setRecvByteBufAllocatorSizeInitial(int size) Set Recv ByteBuf allocator initial buf size.- Parameters:
- size- buffer size
 
 - 
getRecvByteBufAllocatorSizeMinpublic int getRecvByteBufAllocatorSizeMin() Get Recv ByteBuf allocator min buf size.- Returns:
- min byteBuf size
 
 - 
setRecvByteBufAllocatorSizeMinpublic void setRecvByteBufAllocatorSizeMin(int size) Set Recv ByteBuf allocator min buf size.- Parameters:
- size- buffer size
 
 - 
getRecvByteBufAllocatorSizeMaxpublic int getRecvByteBufAllocatorSizeMax() Get Recv ByteBuf allocator max buf size.- Returns:
- max byteBuf size
 
 - 
setRecvByteBufAllocatorSizeMaxpublic void setRecvByteBufAllocatorSizeMax(int size) Set Recv ByteBuf allocator max buf size.- Parameters:
- size- buffer size
 
 - 
setBookieAuthProviderFactoryClasspublic void setBookieAuthProviderFactoryClass(java.lang.String factoryClass) Set the bookie authentication provider factory class name. If this is not set, no authentication will be used.- Parameters:
- factoryClass- the bookie authentication provider factory class name
 
 - 
getBookieAuthProviderFactoryClasspublic java.lang.String getBookieAuthProviderFactoryClass() Get the bookie authentication provider factory class name. If this returns null, no authentication will take place.- Returns:
- the bookie authentication provider factory class name or null.
 
 - 
setNettyMaxFrameSizeBytespublic ServerConfiguration setNettyMaxFrameSizeBytes(int maxSize) Set the max number of bytes a single message can be that is read by the bookie. Any message larger than that size will be rejected.- Overrides:
- setNettyMaxFrameSizeBytesin class- AbstractConfiguration<ServerConfiguration>
- Parameters:
- maxSize- the max size in bytes
- Returns:
- server configuration
 
 - 
getTLSTrustStoreTypepublic java.lang.String getTLSTrustStoreType() Get the truststore type for client. Default is JKS.- Returns:
 
 - 
setTLSKeyStoreTypepublic ServerConfiguration setTLSKeyStoreType(java.lang.String arg) Set the keystore type for client.- Returns:
 
 - 
getTLSKeyStorepublic java.lang.String getTLSKeyStore() Get the keystore path for the client.- Returns:
 
 - 
setTLSKeyStorepublic ServerConfiguration setTLSKeyStore(java.lang.String arg) Set the keystore path for the client.- Returns:
 
 - 
getTLSKeyStorePasswordPathpublic java.lang.String getTLSKeyStorePasswordPath() Get the path to file containing keystore password if the client keystore is password protected. Default is null.- Returns:
 
 - 
setTLSKeyStorePasswordPathpublic ServerConfiguration setTLSKeyStorePasswordPath(java.lang.String arg) Set the path to file containing keystore password, if the client keystore is password protected.- Returns:
 
 - 
getTLSKeyStoreTypepublic java.lang.String getTLSKeyStoreType() Get the keystore type for client. Default is JKS.- Returns:
 
 - 
setTLSTrustStoreTypepublic ServerConfiguration setTLSTrustStoreType(java.lang.String arg) Set the truststore type for client.- Returns:
 
 - 
getTLSTrustStorepublic java.lang.String getTLSTrustStore() Get the truststore path for the client.- Returns:
 
 - 
setTLSTrustStorepublic ServerConfiguration setTLSTrustStore(java.lang.String arg) Set the truststore path for the client.- Returns:
 
 - 
getTLSTrustStorePasswordPathpublic java.lang.String getTLSTrustStorePasswordPath() Get the path to file containing truststore password if the client truststore is password protected. Default is null.- Returns:
 
 - 
setTLSTrustStorePasswordPathpublic ServerConfiguration setTLSTrustStorePasswordPath(java.lang.String arg) Set the path to file containing truststore password, if the client truststore is password protected.- Returns:
 
 - 
getTLSCertificatePathpublic java.lang.String getTLSCertificatePath() Get the path to file containing TLS Certificate.- Returns:
 
 - 
setTLSCertificatePathpublic ServerConfiguration setTLSCertificatePath(java.lang.String arg) Set the path to file containing TLS Certificate.- Returns:
 
 - 
getEnableTaskExecutionStatspublic boolean getEnableTaskExecutionStats() Whether to enable recording task execution stats.- Returns:
- flag to enable/disable recording task execution stats.
 
 - 
setEnableTaskExecutionStatspublic ServerConfiguration setEnableTaskExecutionStats(boolean enabled) Enable/Disable recording task execution stats.- Parameters:
- enabled- flag to enable/disable recording task execution stats.
- Returns:
- client configuration.
 
 - 
getMinUsableSizeForIndexFileCreationpublic long getMinUsableSizeForIndexFileCreation() Gets the minimum safe Usable size to be available in index directory for Bookie to create Index File while replaying journal at the time of Bookie Start in Readonly Mode (in bytes).- Returns:
- minimum safe usable size to be available in index directory for bookie to create index files.
- See Also:
- setMinUsableSizeForIndexFileCreation(long)
 
 - 
setMinUsableSizeForIndexFileCreationpublic ServerConfiguration setMinUsableSizeForIndexFileCreation(long minUsableSizeForIndexFileCreation) Sets the minimum safe Usable size to be available in index directory for Bookie to create Index File while replaying journal at the time of Bookie Start in Readonly Mode (in bytes).This parameter allows creating index files when there are enough disk spaces, even when the bookie is running at readonly mode because of the disk usage is exceeding getDiskUsageThreshold(). Because compaction, journal replays can still write index files to disks when a bookie is readonly.- Parameters:
- minUsableSizeForIndexFileCreation- min usable size for index file creation
- Returns:
- server configuration
 
 - 
getMinUsableSizeForEntryLogCreationpublic long getMinUsableSizeForEntryLogCreation() Gets the minimum safe usable size to be available in ledger directory for Bookie to create entry log files.- Returns:
- minimum safe usable size to be available in ledger directory for entry log file creation.
- See Also:
- setMinUsableSizeForEntryLogCreation(long)
 
 - 
setMinUsableSizeForEntryLogCreationpublic ServerConfiguration setMinUsableSizeForEntryLogCreation(long minUsableSizeForEntryLogCreation) Sets the minimum safe usable size to be available in ledger directory for Bookie to create entry log files.This parameter allows creating entry log files when there are enough disk spaces, even when the bookie is running at readonly mode because of the disk usage is exceeding getDiskUsageThreshold(). Because compaction, journal replays can still write data to disks when a bookie is readonly.- Parameters:
- minUsableSizeForEntryLogCreation- minimum safe usable size to be available in ledger directory
- Returns:
- server configuration
 
 - 
getMinUsableSizeForHighPriorityWritespublic long getMinUsableSizeForHighPriorityWrites() Gets the minimum safe usable size to be available in ledger directory for Bookie to accept high priority writes.If not set, it is the value of getMinUsableSizeForEntryLogCreation().- Returns:
- the minimum safe usable size per ledger directory for bookie to accept high priority writes.
 
 - 
setMinUsableSizeForHighPriorityWritespublic ServerConfiguration setMinUsableSizeForHighPriorityWrites(long minUsableSizeForHighPriorityWrites) Sets the minimum safe usable size to be available in ledger directory for Bookie to accept high priority writes.- Parameters:
- minUsableSizeForHighPriorityWrites- minimum safe usable size per ledger directory for Bookie to accept high priority writes
- Returns:
- server configuration.
 
 - 
isAllowMultipleDirsUnderSameDiskPartitionpublic boolean isAllowMultipleDirsUnderSameDiskPartition() returns whether it is allowed to have multiple ledger/index/journal Directories in the same filesystem diskpartition.- Returns:
 
 - 
setAllowMultipleDirsUnderSameDiskPartitionpublic ServerConfiguration setAllowMultipleDirsUnderSameDiskPartition(boolean allow) Configure the Bookie to allow/disallow multiple ledger/index/journal directories in the same filesystem diskpartition.- Parameters:
- allow-
- Returns:
- server configuration object.
 
 - 
isHttpServerEnabledpublic boolean isHttpServerEnabled() Get whether to start the http server or not.- Returns:
- true - if http server should start
 
 - 
setHttpServerEnabledpublic ServerConfiguration setHttpServerEnabled(boolean enabled) Set whether to start the http server or not.- Parameters:
- enabled- - true if we should start http server
- Returns:
- ServerConfiguration
 
 - 
getHttpServerPortpublic int getHttpServerPort() Get the http server port.- Returns:
- http server port
 
 - 
setHttpServerPortpublic ServerConfiguration setHttpServerPort(int port) Set Http server port listening on.- Parameters:
- port- Port to listen on
- Returns:
- server configuration
 
 - 
getHttpServerHostpublic java.lang.String getHttpServerHost() Get the http server host.- Returns:
- http server host
 
 - 
setHttpServerHostpublic ServerConfiguration setHttpServerHost(java.lang.String host) Set Http server host listening on.- Parameters:
- host- host to listen on
- Returns:
- server configuration
 
 - 
isHttpServerTlsEnablepublic boolean isHttpServerTlsEnable() Get if Http Server Tls enable.- Returns:
 
 - 
setHttpServerTlsEnablepublic ServerConfiguration setHttpServerTlsEnable(boolean tlsEnable) Set if Http Server Tls enable.- Parameters:
- tlsEnable-
- Returns:
- server configuration
 
 - 
getHttpServerKeystorePathpublic java.lang.String getHttpServerKeystorePath() Get the http server keystore path.- Returns:
- http server keystore path
 
 - 
setHttpServerKeystorePathpublic ServerConfiguration setHttpServerKeystorePath(java.lang.String keystorePath) Set Http server keystore path.- Parameters:
- keystorePath- http server keystore path
- Returns:
- server configuration
 
 - 
getHttpServerKeystorePasswordpublic java.lang.String getHttpServerKeystorePassword() Get the http server keyStore password.- Returns:
- http server keyStore password
 
 - 
setHttpServerKeyStorePasswordpublic ServerConfiguration setHttpServerKeyStorePassword(java.lang.String keyStorePassword) Set Http server keyStore password.- Parameters:
- keyStorePassword- http server keyStore password
- Returns:
- server configuration
 
 - 
getHttpServerTrustStorePathpublic java.lang.String getHttpServerTrustStorePath() Get the http server trustStore path.- Returns:
- http server trustStore path
 
 - 
setHttpServerTrustStorePathpublic ServerConfiguration setHttpServerTrustStorePath(java.lang.String trustStorePath) Set Http server trustStore path.- Parameters:
- trustStorePath- http server trustStore path
- Returns:
- server configuration
 
 - 
getHttpServerTrustStorePasswordpublic java.lang.String getHttpServerTrustStorePassword() Get the http server trustStore password.- Returns:
- http server trustStore password
 
 - 
setHttpServerTrustStorePasswordPasswordpublic ServerConfiguration setHttpServerTrustStorePasswordPassword(java.lang.String trustStorePassword) Set Http server trustStore password.- Parameters:
- trustStorePassword- http server trustStore password
- Returns:
- server configuration
 
 - 
getExtraServerComponentspublic java.lang.String[] getExtraServerComponents() Get the extra list of server lifecycle components to enable on a bookie server.- Returns:
- the extra list of server lifecycle components to enable on a bookie server.
 
 - 
setExtraServerComponentspublic ServerConfiguration setExtraServerComponents(java.lang.String[] componentClasses) Set the extra list of server lifecycle components to enable on a bookie server.- Parameters:
- componentClasses- the list of server lifecycle components to enable on a bookie server.
- Returns:
- server configuration.
 
 - 
getIgnoreExtraServerComponentsStartupFailurespublic boolean getIgnoreExtraServerComponentsStartupFailures() Return the flag whether to ignore startup failures on loading server components specified atgetExtraServerComponents().- Returns:
- the flag whether to ignore startup failures on loading server components specified at
 getExtraServerComponents(). The default value is false.
 
 - 
setIgnoreExtraServerComponentsStartupFailurespublic ServerConfiguration setIgnoreExtraServerComponentsStartupFailures(boolean enabled) Set the flag whether to ignore startup failures on loading server components specified atgetExtraServerComponents().- Parameters:
- enabled- flag to enable/disable ignoring startup failures on loading server components.
- Returns:
- server configuration.
 
 - 
getServerWriteBufferLowWaterMarkpublic int getServerWriteBufferLowWaterMark() Get server netty channel write buffer low water mark.- Returns:
- netty channel write buffer low water mark.
 
 - 
setServerWriteBufferLowWaterMarkpublic ServerConfiguration setServerWriteBufferLowWaterMark(int waterMark) Set server netty channel write buffer low water mark.- Parameters:
- waterMark- netty channel write buffer low water mark.
- Returns:
- client configuration.
 
 - 
getServerWriteBufferHighWaterMarkpublic int getServerWriteBufferHighWaterMark() Get server netty channel write buffer high water mark.- Returns:
- netty channel write buffer high water mark.
 
 - 
setServerWriteBufferHighWaterMarkpublic ServerConfiguration setServerWriteBufferHighWaterMark(int waterMark) Set server netty channel write buffer high water mark.- Parameters:
- waterMark- netty channel write buffer high water mark.
- Returns:
- client configuration.
 
 - 
setRegistrationManagerClass@Deprecated public void setRegistrationManagerClass(java.lang.Class<? extends RegistrationManager> regManagerClass) Deprecated.since 4.7.0, in favor of usingAbstractConfiguration.setMetadataServiceUri(String)Set registration manager class.- Parameters:
- regManagerClass- ManagerClass
 
 - 
getRegistrationManagerClass@Deprecated public java.lang.Class<? extends RegistrationManager> getRegistrationManagerClass() throws org.apache.commons.configuration.ConfigurationException Deprecated.since 4.7.0, in favor of usingAbstractConfiguration.getMetadataServiceUri()Get Registration Manager Class.- Returns:
- registration manager class.
- Throws:
- org.apache.commons.configuration.ConfigurationException
 
 - 
getThisprotected ServerConfiguration getThis() Description copied from class:AbstractConfigurationTrickery to allow inheritance with fluent style.- Specified by:
- getThisin class- AbstractConfiguration<ServerConfiguration>
 
 - 
isEntryLogPerLedgerEnabledpublic boolean isEntryLogPerLedgerEnabled() 
 - 
setEntryLogPerLedgerEnabledpublic ServerConfiguration setEntryLogPerLedgerEnabled(boolean entryLogPerLedgerEnabled) 
 - 
getNumOfMemtableFlushThreadspublic int getNumOfMemtableFlushThreads() 
 - 
setNumOfMemtableFlushThreadspublic ServerConfiguration setNumOfMemtableFlushThreads(int numOfMemtableFlushThreads) 
 - 
getEntrylogMapAccessExpiryTimeInSecondspublic int getEntrylogMapAccessExpiryTimeInSeconds() 
 - 
setEntrylogMapAccessExpiryTimeInSecondspublic ServerConfiguration setEntrylogMapAccessExpiryTimeInSeconds(int entrylogMapAccessExpiryTimeInSeconds) 
 - 
getMaximumNumberOfActiveEntryLogspublic int getMaximumNumberOfActiveEntryLogs() 
 - 
setMaximumNumberOfActiveEntryLogspublic ServerConfiguration setMaximumNumberOfActiveEntryLogs(int maximumNumberOfActiveEntryLogs) 
 - 
getEntryLogPerLedgerCounterLimitsMultFactorpublic int getEntryLogPerLedgerCounterLimitsMultFactor() 
 - 
setEntryLogPerLedgerCounterLimitsMultFactorpublic ServerConfiguration setEntryLogPerLedgerCounterLimitsMultFactor(int entryLogPerLedgerCounterLimitsMultFactor) 
 - 
isLocalConsistencyCheckOnStartuppublic boolean isLocalConsistencyCheckOnStartup() True if a local consistency check should be performed on startup.
 - 
getAuthorizedRolespublic java.lang.String[] getAuthorizedRoles() Get the authorized roles.- Returns:
- String array of configured auth roles.
 
 - 
setAuthorizedRolespublic ServerConfiguration setAuthorizedRoles(java.lang.String roles) Set authorized roles.- Returns:
- Configuration Object with roles set
 
 - 
getInFlightReadEntryNumInLedgerCheckerpublic int getInFlightReadEntryNumInLedgerChecker() Get in flight read entry number when ledger checker. Default value is -1 which it is unlimited when ledger checker.- Returns:
- read entry number of in flight.
 
 - 
setDataIntegrityCheckingEnabledpublic ServerConfiguration setDataIntegrityCheckingEnabled(boolean enabled) Enabled data integrity checker. The data integrity checker checks that the bookie has all the entries which ledger metadata asserts it has. The checker runs on startup (periodic will be added later). The changes how cookies are handled. If a directory is found to be missing a cookie, the check runs. The check is divided into two parts, preboot and full. The preboot check ensures that it is safe to boot the bookie; the bookie will not vote in any operation that contradicts a previous vote. The full check ensures that any ledger that claims to have entries on the bookie, truly does have data on the bookie. Any missing entries are copies from available replicas.
 - 
isDataIntegrityCheckingEnabledpublic boolean isDataIntegrityCheckingEnabled() - See Also:
- setDataIntegrityCheckingEnabled(boolean)
 
 - 
setDataIntegrityStampMissingCookiesEnabledpublic ServerConfiguration setDataIntegrityStampMissingCookiesEnabled(boolean enabled) When this config is set to true and the data integrity checker is also enabled then any missing cookie files in the ledger directories do not prevent the bookie from booting. Missing cookie files usually indicate an empty disk has been mounted, which might be after a disk failure (all data lost) or a provisioning error (wrong disk mounted). If there are missing cookie files then: - a new cookie is stamped (written to each ledger directory and to the co-ordination service, eg: zookeeper). - the data integrity checker will attempt to repair any lost data by sourcing the lost entries from other bookies If any cookies do not match the master cookie, then cookie validation still fails as normal.
 - 
isDataIntegrityStampMissingCookiesEnabledpublic boolean isDataIntegrityStampMissingCookiesEnabled() 
 
- 
 
-