Package | Description |
---|---|
org.apache.bookkeeper.client |
BookKeeper Client.
|
org.apache.bookkeeper.conf |
Modifier and Type | Field and Description |
---|---|
(package private) ClientConfiguration |
BookKeeper.conf |
(package private) ClientConfiguration |
BookKeeper.Builder.conf |
Modifier and Type | Method and Description |
---|---|
protected ClientConfiguration |
BookKeeper.getConf() |
Modifier and Type | Method and Description |
---|---|
static BookKeeper.Builder |
BookKeeper.forConfig(ClientConfiguration conf) |
static boolean |
BookKeeperAdmin.format(ClientConfiguration conf,
boolean isInteractive,
boolean force)
Format the BookKeeper metadata in zookeeper
|
RegionAwareEnsemblePlacementPolicy |
RegionAwareEnsemblePlacementPolicy.initialize(ClientConfiguration conf,
Optional<org.apache.bookkeeper.net.DNSToSwitchMapping> optionalDnsResolver,
io.netty.util.HashedWheelTimer timer,
FeatureProvider featureProvider,
StatsLogger statsLogger) |
RackawareEnsemblePlacementPolicyImpl |
RackawareEnsemblePlacementPolicyImpl.initialize(ClientConfiguration conf,
Optional<org.apache.bookkeeper.net.DNSToSwitchMapping> optionalDnsResolver,
io.netty.util.HashedWheelTimer timer,
FeatureProvider featureProvider,
StatsLogger statsLogger) |
EnsemblePlacementPolicy |
EnsemblePlacementPolicy.initialize(ClientConfiguration conf,
Optional<org.apache.bookkeeper.net.DNSToSwitchMapping> optionalDnsResolver,
io.netty.util.HashedWheelTimer hashedWheelTimer,
FeatureProvider featureProvider,
StatsLogger statsLogger)
Initialize the policy.
|
EnsemblePlacementPolicy |
DefaultEnsemblePlacementPolicy.initialize(ClientConfiguration conf,
Optional<org.apache.bookkeeper.net.DNSToSwitchMapping> optionalDnsResolver,
io.netty.util.HashedWheelTimer timer,
FeatureProvider featureProvider,
StatsLogger statsLogger) |
Constructor and Description |
---|
BookieInfoReader(BookKeeper bk,
ClientConfiguration conf,
ScheduledExecutorService scheduler) |
BookieWatcher(ClientConfiguration conf,
ScheduledExecutorService scheduler,
EnsemblePlacementPolicy placementPolicy,
BookKeeper bk) |
BookKeeper(ClientConfiguration conf)
Create a bookkeeper client using a configuration object.
|
BookKeeper(ClientConfiguration conf,
org.apache.zookeeper.ZooKeeper zk)
Create a bookkeeper client but use the passed in zookeeper client instead
of instantiating one.
|
BookKeeper(ClientConfiguration conf,
org.apache.zookeeper.ZooKeeper zk,
io.netty.channel.EventLoopGroup eventLoopGroup)
Create a bookkeeper client but use the passed in zookeeper client and
client event loop group instead of instantiating those.
|
BookKeeperAdmin(ClientConfiguration conf)
Constructor that takes in a configuration object so we know
how to connect to ZooKeeper to retrieve information about the BookKeeper
cluster.
|
Builder(ClientConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
ClientConfiguration |
ClientConfiguration.enableBookieHealthCheck()
Enables the bookie health check.
|
ClientConfiguration |
ClientConfiguration.setAddEntryQuorumTimeout(int timeout)
Set timeout for top-level add entry request.
|
ClientConfiguration |
ClientConfiguration.setAddEntryTimeout(int timeout)
Set timeout for add entry request.
|
ClientConfiguration |
ClientConfiguration.setBookieErrorThresholdPerInterval(long thresholdPerInterval)
Set the error threshold per interval (
getBookieHealthCheckIntervalSeconds() ) for a bookie before it is
quarantined. |
ClientConfiguration |
ClientConfiguration.setBookieFailureHistoryExpirationMSec(int expirationMSec)
Set the bookie failure tracking expiration timeout.
|
ClientConfiguration |
ClientConfiguration.setBookieHealthCheckInterval(int interval,
TimeUnit unit)
Set the bookie health check interval.
|
ClientConfiguration |
ClientConfiguration.setBookieMaxWeightMultipleForWeightBasedPlacement(int multiple)
Set the max multiple to use for nodes with very high weight
|
ClientConfiguration |
ClientConfiguration.setBookieQuarantineTime(int quarantineTime,
TimeUnit unit)
Set the time for which a bookie will be quarantined.
|
ClientConfiguration |
ClientConfiguration.setBookieRecoveryDigestType(BookKeeper.DigestType digestType)
Set digest type used in bookkeeper admin.
|
ClientConfiguration |
ClientConfiguration.setBookieRecoveryPasswd(byte[] passwd)
Set passwd used in bookkeeper admin.
|
ClientConfiguration |
ClientConfiguration.setClientConnectTimeoutMillis(int connectTimeoutMillis)
Set client netty connect timeout in millis.
|
ClientConfiguration |
ClientConfiguration.setClientReceiveBufferSize(int bufferSize)
Set client netty channel receive buffer size.
|
ClientConfiguration |
ClientConfiguration.setClientRole(String role)
Set the client role
|
ClientConfiguration |
ClientConfiguration.setClientSendBufferSize(int bufferSize)
Set client netty channel send buffer size.
|
ClientConfiguration |
ClientConfiguration.setClientSockKeepalive(boolean keepalive)
Set socket keepalive setting.
|
ClientConfiguration |
ClientConfiguration.setClientTcpNoDelay(boolean noDelay)
Set socket nodelay setting.
|
ClientConfiguration |
ClientConfiguration.setClientWriteBufferHighWaterMark(int waterMark)
Set client netty channel write buffer high water mark.
|
ClientConfiguration |
ClientConfiguration.setClientWriteBufferLowWaterMark(int waterMark)
Set client netty channel write buffer low water mark.
|
ClientConfiguration |
ClientConfiguration.setDelayEnsembleChange(boolean enabled)
Enable/Disable delaying ensemble change.
|
ClientConfiguration |
ClientConfiguration.setDisableEnsembleChangeFeatureName(String disableEnsembleChangeFeatureName)
Set the name of the dynamic feature that disables ensemble change
|
ClientConfiguration |
ClientConfiguration.setDiskWeightBasedPlacementEnabled(boolean isEnabled)
Set whether or not disk weight based placement is enabled.
|
ClientConfiguration |
ClientConfiguration.setEnableBookieFailureTracking(boolean enabled)
Enable/Disable bookie failure tracking.
|
ClientConfiguration |
ClientConfiguration.setEnableDigestTypeAutodetection(boolean enable)
Enable autodetection of digest type.
|
ClientConfiguration |
ClientConfiguration.setEnableParallelRecoveryRead(boolean enabled)
Enable/Disable parallel reading in recovery read.
|
ClientConfiguration |
ClientConfiguration.setEnableTaskExecutionStats(boolean enabled)
Enable/Disable recording task execution stats.
|
ClientConfiguration |
ClientConfiguration.setEnsemblePlacementPolicy(Class<? extends EnsemblePlacementPolicy> policyClass)
Set Ensemble Placement Policy Class.
|
ClientConfiguration |
ClientConfiguration.setExplictLacInterval(int interval)
Set the interval to check the need for sending an explicit LAC.
|
ClientConfiguration |
ClientConfiguration.setFirstSpeculativeReadLACTimeout(int timeout)
Set the period of time after which the first speculative read last add confirmed and entry
should be triggered.
|
ClientConfiguration |
ClientConfiguration.setFirstSpeculativeReadTimeout(int timeout)
Set the first speculative read timeout.
|
ClientConfiguration |
ClientConfiguration.setGetBookieInfoIntervalSeconds(int pollInterval,
TimeUnit unit)
Set the time interval between successive polls for bookie get info.
|
ClientConfiguration |
ClientConfiguration.setGetBookieInfoRetryIntervalSeconds(int interval,
TimeUnit unit)
Set the time interval between retries on unsuccessful GetInfo requests
|
ClientConfiguration |
ClientConfiguration.setGetBookieInfoTimeout(int timeoutSecs)
Set the timeout value in secs for the GET_BOOKIE_INFO request
|
ClientConfiguration |
ClientConfiguration.setMaxSpeculativeReadLACTimeout(int timeout)
Set the maximum interval between successive speculative read last add confirmed and entry
requests.
|
ClientConfiguration |
ClientConfiguration.setMaxSpeculativeReadTimeout(int timeout)
Set the max speculative read timeout.
|
ClientConfiguration |
ClientConfiguration.setNettyMaxFrameSizeBytes(int maxSize)
Set the max number of bytes a single message can be that is read by the bookie.
|
ClientConfiguration |
ClientConfiguration.setNettyUsePooledBuffers(boolean enabled)
Enable/Disable the usage of Pooled Netty buffers.
|
ClientConfiguration |
ClientConfiguration.setNetworkTopologyStabilizePeriodSeconds(int seconds)
Set the network topology stabilize period in seconds.
|
ClientConfiguration |
ClientConfiguration.setNumChannelsPerBookie(int numChannelsPerBookie)
Set num channels per bookie.
|
ClientConfiguration |
ClientConfiguration.setNumWorkerThreads(int numThreads)
Set the number of worker threads.
|
ClientConfiguration |
ClientConfiguration.setPCBCTimeoutTimerNumTicks(int numTicks)
Set number of ticks that used for
org.jboss.netty.util.HashedWheelTimer that used by PCBC to timeout request. |
ClientConfiguration |
ClientConfiguration.setPCBCTimeoutTimerTickDurationMs(long tickDuration)
Set the tick duration in milliseconds that used for
org.jboss.netty.util.HashedWheelTimer that used by PCBC to timeout
requests. |
ClientConfiguration |
ClientConfiguration.setReadEntryTimeout(int timeout)
Set the timeout for read entry request.
|
ClientConfiguration |
ClientConfiguration.setReadTimeout(int timeout)
Deprecated.
use
setReadEntryTimeout(int) or setAddEntryTimeout(int) instead |
ClientConfiguration |
ClientConfiguration.setRecoveryReadBatchSize(int batchSize)
Set Recovery Read Batch Size.
|
ClientConfiguration |
ClientConfiguration.setReorderReadSequenceEnabled(boolean enabled)
Enable/disable reordering read sequence on reading entries.
|
ClientConfiguration |
ClientConfiguration.setSpeculativeReadLACTimeoutBackoffMultiplier(float speculativeReadLACTimeoutBackoffMultiplier)
Set the multipler to use when determining time between successive speculative read LAC requests
|
ClientConfiguration |
ClientConfiguration.setSpeculativeReadTimeout(int timeout)
Set the speculative read timeout.
|
ClientConfiguration |
ClientConfiguration.setSpeculativeReadTimeoutBackoffMultiplier(float speculativeReadTimeoutBackoffMultiplier)
Set the multipler to use when determining time between successive speculative read requests
|
ClientConfiguration |
ClientConfiguration.setStartTLSTimeout(int timeoutSecs)
Set the timeout value in secs for the START_TLS request
|
ClientConfiguration |
ClientConfiguration.setTaskExecutionWarnTimeMicros(long warnTime)
Set task execution duration which triggers a warning.
|
ClientConfiguration |
ClientConfiguration.setThrottleValue(int throttle)
Set throttle value.
|
ClientConfiguration |
ClientConfiguration.setTimeoutTaskIntervalMillis(long timeoutMillis)
Deprecated.
|
ClientConfiguration |
ClientConfiguration.setTimeoutTimerNumTicks(int numTicks)
Set number of ticks that used for timeout timer.
|
ClientConfiguration |
ClientConfiguration.setTimeoutTimerTickDurationMs(long tickDuration)
Set the tick duration in milliseconds that used for timeout timer.
|
ClientConfiguration |
ClientConfiguration.setTLSKeyStore(String arg)
Set the keystore path for the client.
|
ClientConfiguration |
ClientConfiguration.setTLSKeyStorePasswordPath(String arg)
Set the path to file containing keystore password, if the client keystore is password protected.
|
ClientConfiguration |
ClientConfiguration.setTLSKeyStoreType(String arg)
Set the keystore type for client.
|
ClientConfiguration |
ClientConfiguration.setTLSTrustStore(String arg)
Set the truststore path for the client.
|
ClientConfiguration |
ClientConfiguration.setTLSTrustStorePasswordPath(String arg)
Set the path to file containing truststore password, if the client truststore is password protected.
|
ClientConfiguration |
ClientConfiguration.setTLSTrustStoreType(String arg)
Set the truststore type for client.
|
ClientConfiguration |
ClientConfiguration.setUseV2WireProtocol(boolean useV2WireProtocol)
Set whether or not to use older Bookkeeper wire protocol (no protobuf)
|
ClientConfiguration |
ClientConfiguration.setZkServers(String zkServers)
Set zookeeper servers to connect
|
ClientConfiguration |
ClientConfiguration.setZkTimeout(int zkTimeout)
Set zookeeper timeout
|
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.