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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSnapshot
(YRDB rdb, org.rocksdb.Snapshot snapshot) void
close()
void
finalize()
getDb()
org.rocksdb.Snapshot
getSnapshot
(YRDB rdb) void
setTablespace
(Tablespace tablespace)
-
Constructor Details
-
ExecutionContext
-
-
Method Details
-
getDb
-
setTablespace
-
getTablespace
-
getSnapshot
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
addSnapshot
-
finalize
public void finalize()
-