Package org.yamcs.yarch
Class ExecutionContext
java.lang.Object
org.yamcs.yarch.ExecutionContext
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSnapshot(YRDB rdb, org.rocksdb.Snapshot snapshot) voidclose()voidfinalize()getDb()org.rocksdb.SnapshotgetSnapshot(YRDB rdb) voidsetTablespace(Tablespace tablespace)
-
Constructor Details
-
ExecutionContext
-
-
Method Details
-
getDb
-
setTablespace
-
getTablespace
-
getSnapshot
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
addSnapshot
-
finalize
public void finalize()
-