Tabnine Logo
StorageEngineManager
Code IndexAdd Tabnine to your IDE (free)

How to use
StorageEngineManager
in
org.lealone.storage

Best Java code snippets using org.lealone.storage.StorageEngineManager (Showing top 4 results out of 315)

origin: lealone/Lealone

public static StorageEngine getStorageEngine(String name) {
  return instance.getEngine(name);
}
origin: lealone/Lealone

public StorageEngineBase(String name) {
  this.name = name;
  // 见PluggableEngineManager.PluggableEngineService中的注释
  StorageEngineManager.getInstance().registerEngine(this);
}
origin: lealone/Lealone

private static void initStorageEngineEngines() {
  registerAndInitEngines(config.storage_engines, "storage", "default.storage.engine", def -> {
    StorageEngine se = StorageEngineManager.getInstance().getEngine(def.name);
    if (se == null) {
      Class<?> clz = Utils.loadUserClass(def.name);
      se = (StorageEngine) clz.newInstance();
      StorageEngineManager.getInstance().registerEngine(se);
    }
    return se;
  });
}
origin: lealone/Lealone

StorageEngine engine = StorageEngineManager.getInstance().getEngine(data.storageEngineName);
if (engine == null) {
  try {
    engine = (StorageEngine) Utils.loadUserClass(data.storageEngineName).newInstance();
    StorageEngineManager.getInstance().registerEngine(engine);
  } catch (Exception e) {
    throw DbException.convert(e);
org.lealone.storageStorageEngineManager

Most used methods

  • getEngine
  • getInstance
  • registerEngine

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Option (scala)
  • Best plugins for Eclipse
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