public class CccsdsTmIndex extends Object implements TmIndex
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
CccsdsTmIndex(String filename)
Used when started standalone
|
CccsdsTmIndex(String instance,
boolean readonly)
if readonly is specified, it is open only for reading
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPacket(short apid,
long instant,
short seq) |
void |
close() |
void |
deleteRecords(long start,
long stop) |
IndexIterator |
getIterator(List<Yamcs.NamedObjectId> names,
long start,
long stop)
return an iterator that provides all the index entries between start and stop
|
static void |
main(String[] args)
Print the content of the index files
|
void |
onTuple(Stream stream,
Tuple tuple) |
void |
printApidDb() |
void |
printApidDb(short apid,
long start,
long stop) |
void |
streamClosed(Stream stream) |
public CccsdsTmIndex(String instance, boolean readonly) throws IOException
IOExceptionpublic CccsdsTmIndex(String filename) throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionpublic void onTuple(Stream stream, Tuple tuple)
onTuple in interface StreamSubscriberpublic void addPacket(short apid,
long instant,
short seq)
throws org.rocksdb.RocksDBException
org.rocksdb.RocksDBExceptionpublic void close()
throws IOException
close in interface TmIndexIOExceptionpublic void deleteRecords(long start,
long stop)
deleteRecords in interface TmIndexpublic void printApidDb()
public void printApidDb(short apid,
long start,
long stop)
public static void main(String[] args) throws Exception
args - Exceptionpublic IndexIterator getIterator(List<Yamcs.NamedObjectId> names, long start, long stop)
TmIndexgetIterator in interface TmIndexnames - can be used to filter which entries are returned. If null, everything is returned.public void streamClosed(Stream stream)
streamClosed in interface StreamSubscriberCopyright © 2018 Space Applications Services. All rights reserved.