Uses of Interface
org.apache.bookkeeper.net.DNSToSwitchMapping
-
Packages that use DNSToSwitchMapping Package Description org.apache.bookkeeper.bookie Provides a Bookie server that stores entries for clients.org.apache.bookkeeper.client BookKeeper Client.org.apache.bookkeeper.client.api BookKeeper Client Public API.org.apache.bookkeeper.client.impl BookKeeper Client implementation package.org.apache.bookkeeper.net Network-related classes. -
-
Uses of DNSToSwitchMapping in org.apache.bookkeeper.bookie
Method parameters in org.apache.bookkeeper.bookie with type arguments of type DNSToSwitchMapping Modifier and Type Method Description EnsemblePlacementPolicy
LocalBookieEnsemblePlacementPolicy. initialize(ClientConfiguration conf, java.util.Optional<DNSToSwitchMapping> optionalDnsResolver, io.netty.util.HashedWheelTimer hashedWheelTimer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
-
Uses of DNSToSwitchMapping in org.apache.bookkeeper.client
Classes in org.apache.bookkeeper.client that implement DNSToSwitchMapping Modifier and Type Class Description (package private) static class
TopologyAwareEnsemblePlacementPolicy.DefaultResolver
(package private) static class
TopologyAwareEnsemblePlacementPolicy.DNSResolverDecorator
Decorator for any existing dsn resolver.Fields in org.apache.bookkeeper.client declared as DNSToSwitchMapping Modifier and Type Field Description (package private) DNSToSwitchMapping
BookKeeper.Builder. dnsResolver
protected DNSToSwitchMapping
TopologyAwareEnsemblePlacementPolicy. dnsResolver
(package private) DNSToSwitchMapping
TopologyAwareEnsemblePlacementPolicy.DNSResolverDecorator. resolver
Methods in org.apache.bookkeeper.client with parameters of type DNSToSwitchMapping Modifier and Type Method Description BookKeeper.Builder
BookKeeper.Builder. dnsResolver(DNSToSwitchMapping dnsResolver)
Configure the bookkeeper client to use the provided dns resolverDNSToSwitchMapping
.protected RackawareEnsemblePlacementPolicy
RackawareEnsemblePlacementPolicy. initialize(DNSToSwitchMapping dnsResolver, io.netty.util.HashedWheelTimer timer, boolean reorderReadsRandom, int stabilizePeriodSeconds, int reorderThresholdPendingRequests, boolean isWeighted, int maxWeightMultiple, int minNumRacksPerWriteQuorum, boolean enforceMinNumRacksPerWriteQuorum, boolean ignoreLocalNodeInPlacementPolicy, boolean useHostnameResolveLocalNodePlacementPolicy, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
protected RackawareEnsemblePlacementPolicy
RackawareEnsemblePlacementPolicy. initialize(DNSToSwitchMapping dnsResolver, io.netty.util.HashedWheelTimer timer, boolean reorderReadsRandom, int stabilizePeriodSeconds, int reorderThresholdPendingRequests, boolean isWeighted, int maxWeightMultiple, int minNumRacksPerWriteQuorum, boolean enforceMinNumRacksPerWriteQuorum, boolean ignoreLocalNodeInPlacementPolicy, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
protected RackawareEnsemblePlacementPolicyImpl
RackawareEnsemblePlacementPolicyImpl. initialize(DNSToSwitchMapping dnsResolver, io.netty.util.HashedWheelTimer timer, boolean reorderReadsRandom, int stabilizePeriodSeconds, int reorderThresholdPendingRequests, boolean isWeighted, int maxWeightMultiple, int minNumRacksPerWriteQuorum, boolean enforceMinNumRacksPerWriteQuorum, boolean ignoreLocalNodeInPlacementPolicy, boolean useHostnameResolveLocalNodePlacementPolicy, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
Initialize the policy.protected RackawareEnsemblePlacementPolicyImpl
RackawareEnsemblePlacementPolicyImpl. initialize(DNSToSwitchMapping dnsResolver, io.netty.util.HashedWheelTimer timer, boolean reorderReadsRandom, int stabilizePeriodSeconds, int reorderThresholdPendingRequests, boolean isWeighted, int maxWeightMultiple, int minNumRacksPerWriteQuorum, boolean enforceMinNumRacksPerWriteQuorum, boolean ignoreLocalNodeInPlacementPolicy, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
Initialize the policy.protected EnsemblePlacementPolicy
BookKeeper. initializeEnsemblePlacementPolicy(ClientConfiguration conf, DNSToSwitchMapping dnsResolver, io.netty.util.HashedWheelTimer timer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
Method parameters in org.apache.bookkeeper.client with type arguments of type DNSToSwitchMapping Modifier and Type Method Description EnsemblePlacementPolicy
DefaultEnsemblePlacementPolicy. initialize(ClientConfiguration conf, java.util.Optional<DNSToSwitchMapping> optionalDnsResolver, io.netty.util.HashedWheelTimer hashedWheelTimer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
EnsemblePlacementPolicy
EnsemblePlacementPolicy. initialize(ClientConfiguration conf, java.util.Optional<DNSToSwitchMapping> optionalDnsResolver, io.netty.util.HashedWheelTimer hashedWheelTimer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
Initialize the policy.RackawareEnsemblePlacementPolicyImpl
RackawareEnsemblePlacementPolicyImpl. initialize(ClientConfiguration conf, java.util.Optional<DNSToSwitchMapping> optionalDnsResolver, io.netty.util.HashedWheelTimer timer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
RegionAwareEnsemblePlacementPolicy
RegionAwareEnsemblePlacementPolicy. initialize(ClientConfiguration conf, java.util.Optional<DNSToSwitchMapping> optionalDnsResolver, io.netty.util.HashedWheelTimer timer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
EnsemblePlacementPolicy
ZoneawareEnsemblePlacementPolicy. initialize(ClientConfiguration conf, java.util.Optional<DNSToSwitchMapping> optionalDnsResolver, io.netty.util.HashedWheelTimer timer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
EnsemblePlacementPolicy
ZoneawareEnsemblePlacementPolicyImpl. initialize(ClientConfiguration conf, java.util.Optional<DNSToSwitchMapping> optionalDnsResolver, io.netty.util.HashedWheelTimer timer, FeatureProvider featureProvider, StatsLogger statsLogger, BookieAddressResolver bookieAddressResolver)
Constructors in org.apache.bookkeeper.client with parameters of type DNSToSwitchMapping Constructor Description BookKeeper(ClientConfiguration conf, org.apache.zookeeper.ZooKeeper zkc, io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.buffer.ByteBufAllocator byteBufAllocator, StatsLogger rootStatsLogger, DNSToSwitchMapping dnsResolver, io.netty.util.HashedWheelTimer requestTimer, FeatureProvider featureProvider)
Constructor for use with the builder.DNSResolverDecorator(DNSToSwitchMapping resolver, java.util.function.Supplier<java.lang.String> defaultRackSupplier, Counter failedToResolveNetworkLocationCounter)
-
Uses of DNSToSwitchMapping in org.apache.bookkeeper.client.api
Methods in org.apache.bookkeeper.client.api with parameters of type DNSToSwitchMapping Modifier and Type Method Description BookKeeperBuilder
BookKeeperBuilder. dnsResolver(DNSToSwitchMapping dnsResolver)
Configure the bookkeeper client to use the provided dns resolverDNSToSwitchMapping
. -
Uses of DNSToSwitchMapping in org.apache.bookkeeper.client.impl
Methods in org.apache.bookkeeper.client.impl with parameters of type DNSToSwitchMapping Modifier and Type Method Description BookKeeperBuilder
BookKeeperBuilderImpl. dnsResolver(DNSToSwitchMapping dnsResolver)
-
Uses of DNSToSwitchMapping in org.apache.bookkeeper.net
Classes in org.apache.bookkeeper.net that implement DNSToSwitchMapping Modifier and Type Class Description class
AbstractDNSToSwitchMapping
This is a base class for DNS to Switch mappings.class
CachedDNSToSwitchMapping
A cached implementation of DNSToSwitchMapping that takes an raw DNSToSwitchMapping and stores the resolved network location in a cache.class
ScriptBasedMapping
This class implements theDNSToSwitchMapping
interface using a script configured via theCommonConfigurationKeys.NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY
option.Fields in org.apache.bookkeeper.net declared as DNSToSwitchMapping Modifier and Type Field Description protected DNSToSwitchMapping
CachedDNSToSwitchMapping. rawMapping
The uncached mapping.Methods in org.apache.bookkeeper.net with parameters of type DNSToSwitchMapping Modifier and Type Method Description static boolean
AbstractDNSToSwitchMapping. isMappingSingleSwitch(DNSToSwitchMapping mapping)
Query for aDNSToSwitchMapping
instance being on a single switch.static java.lang.String
NetUtils. resolveNetworkLocation(DNSToSwitchMapping dnsResolver, BookieSocketAddress addr)
Constructors in org.apache.bookkeeper.net with parameters of type DNSToSwitchMapping Constructor Description CachedDNSToSwitchMapping(DNSToSwitchMapping rawMapping)
Cache a raw DNS mapping.
-