Class ExecutionContext

java.lang.Object
org.yamcs.yarch.ExecutionContext
All Implemented Interfaces:
AutoCloseable

public class ExecutionContext extends Object implements AutoCloseable
Keeps track of attributes associated with an execution context of a query: tablespace, database and snapshots

The context has to be closed to release the snapshots (otherwise

  • Constructor Details

  • Method Details

    • getDb

      public YarchDatabaseInstance getDb()
    • setTablespace

      public void setTablespace(Tablespace tablespace)
    • getTablespace

      public Tablespace getTablespace()
    • getSnapshot

      public org.rocksdb.Snapshot getSnapshot(YRDB rdb)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • addSnapshot

      public void addSnapshot(YRDB rdb, org.rocksdb.Snapshot snapshot)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object