Class YarchDatabase

java.lang.Object
org.yamcs.yarch.YarchDatabase

public class YarchDatabase extends Object
Handles all tables/streams/indexes for a Yamcs server
  • Field Details

  • Constructor Details

    • YarchDatabase

      public YarchDatabase()
  • Method Details

    • getInstance

      public static YarchDatabaseInstance getInstance(String yamcsInstance)
      Parameters:
      yamcsInstance -
    • getDatabases

      public static Set<String> getDatabases()
      Returns the names of the loaded databases.
    • hasInstance

      public static boolean hasInstance(String dbname)
    • instanceExistsOnDisk

      public static boolean instanceExistsOnDisk(String yamcsInstance)
    • removeInstance

      public static void removeInstance(String dbName)
      to be used for testing
      Parameters:
      dbName - database name to be removed
    • setHome

      public static void setHome(String home)
    • getHome

      public static String getHome()
    • getDataDir

      public static String getDataDir()
    • getDefaultStorageEngine

      public static StorageEngine getDefaultStorageEngine()
    • getStorageEngine

      public static StorageEngine getStorageEngine(String storageEngineName)
    • getStorageEngines

      public static Collection<StorageEngine> getStorageEngines()
    • getStorageEngineNames

      public static Set<String> getStorageEngineNames()
    • getDefaultStorageEngineName

      public static String getDefaultStorageEngineName()