Search in sources :

Example 16 with SettableFeatureProvider

use of org.apache.bookkeeper.feature.SettableFeatureProvider in project distributedlog by twitter.

the class TestDistributedLogBase method createNewDLM.

public BKDistributedLogManager createNewDLM(DistributedLogConfiguration conf, String name, PermitLimiter writeLimiter) throws Exception {
    URI uri = createDLMURI("/" + name);
    ensureURICreated(uri);
    return new BKDistributedLogManager(name, conf, uri, null, null, null, null, null, null, new SettableFeatureProvider("", 0), writeLimiter, NullStatsLogger.INSTANCE);
}
Also used : URI(java.net.URI) SettableFeatureProvider(org.apache.bookkeeper.feature.SettableFeatureProvider)

Aggregations

SettableFeatureProvider (org.apache.bookkeeper.feature.SettableFeatureProvider)16 URI (java.net.URI)6 SettableFeature (org.apache.bookkeeper.feature.SettableFeature)6 FeatureProvider (org.apache.bookkeeper.feature.FeatureProvider)5 BookieSocketAddress (org.apache.bookkeeper.net.BookieSocketAddress)5 LedgerHandle (org.apache.bookkeeper.client.LedgerHandle)4 HashSet (java.util.HashSet)3 CountDownLatch (java.util.concurrent.CountDownLatch)3 BKNotEnoughBookiesException (org.apache.bookkeeper.client.BKException.BKNotEnoughBookiesException)3 ClientConfiguration (org.apache.bookkeeper.conf.ClientConfiguration)3 Test (org.junit.Test)3 BKLogSegmentEntryWriter (com.twitter.distributedlog.impl.BKLogSegmentEntryWriter)2 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 OrderedScheduler (org.apache.bookkeeper.common.util.OrderedScheduler)2 BKLogSegmentEntryWriter (org.apache.distributedlog.impl.logsegment.BKLogSegmentEntryWriter)2 AsyncFailureInjector (org.apache.distributedlog.injector.AsyncFailureInjector)2 RateLimiter (com.google.common.util.concurrent.RateLimiter)1 BKDLConfig (com.twitter.distributedlog.metadata.BKDLConfig)1 URISyntaxException (java.net.URISyntaxException)1 ArrayList (java.util.ArrayList)1