Tabnine Logo
InMemoryStorageFactory.createStorageAdapter
Code IndexAdd Tabnine to your IDE (free)

How to use
createStorageAdapter
method
in
io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory

Best Java code snippets using io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory.createStorageAdapter (Showing top 4 results out of 315)

origin: pravega/pravega

SingletonStorageFactory(ScheduledExecutorService executor) {
  this.storage = new InMemoryStorageFactory(executor).createStorageAdapter();
  this.storage.initialize(1);
  this.closed = new AtomicBoolean();
}
origin: pravega/pravega

TestContext() {
  this.storageFactory = new InMemoryStorageFactory(executorService());
  this.container = new ReadOnlySegmentContainer(this.storageFactory, executorService());
  this.storage = this.storageFactory.createStorageAdapter();
}
origin: pravega/pravega

  private Storage createStorage() {
    val factory = new InMemoryStorageFactory(executorService());
    return factory.createStorageAdapter();
  }
}
origin: pravega/pravega

/**
 * Creates a new instance of the DebugRecoveryProcessor class with the given arguments.
 *
 * @param containerId     The Id of the Container to recover.
 * @param durableDataLog  A DurableDataLog to recover from.
 * @param config          A ContainerConfig to use during recovery.
 * @param readIndexConfig A ReadIndexConfig to use during recovery.
 * @param executor        An Executor to use for background tasks.
 * @param callbacks       Callbacks to invoke during recovery.
 * @return A new instance of the DebugRecoveryProcessor.
 */
public static DebugRecoveryProcessor create(int containerId, DurableDataLog durableDataLog, ContainerConfig config, ReadIndexConfig readIndexConfig,
                      ScheduledExecutorService executor, OperationCallbacks callbacks) {
  Preconditions.checkNotNull(durableDataLog, "durableDataLog");
  Preconditions.checkNotNull(config, "config");
  Preconditions.checkNotNull(readIndexConfig, "readIndexConfig");
  Preconditions.checkNotNull(executor, "executor");
  Preconditions.checkNotNull(callbacks, callbacks);
  StreamSegmentContainerMetadata metadata = new StreamSegmentContainerMetadata(containerId, config.getMaxActiveSegmentCount());
  CacheManager cacheManager = new CacheManager(new CachePolicy(Long.MAX_VALUE, Duration.ofHours(10), Duration.ofHours(1)), executor);
  cacheManager.startAsync().awaitRunning();
  ContainerReadIndexFactory rf = new ContainerReadIndexFactory(readIndexConfig, new NoOpCacheFactory(), cacheManager, executor);
  Storage s = new InMemoryStorageFactory(executor).createStorageAdapter();
  return new DebugRecoveryProcessor(metadata, durableDataLog, rf, s, cacheManager, callbacks);
}
io.pravega.segmentstore.storage.mocksInMemoryStorageFactorycreateStorageAdapter

Popular methods of InMemoryStorageFactory

  • <init>
  • newStorage
    Creates a new InMemory Storage, without a rolling wrapper.
  • close
  • initialize

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ImageIO (javax.imageio)
  • Runner (org.openjdk.jmh.runner)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now