public class ParameterArchiveV2
extends com.google.common.util.concurrent.AbstractService
| Modifier and Type | Class and Description |
|---|---|
static class |
ParameterArchiveV2.Partition |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
STORE_RAW_VALUES |
| Constructor and Description |
|---|
ParameterArchiveV2(String instance) |
ParameterArchiveV2(String instance,
Map<String,Object> args) |
| Modifier and Type | Method and Description |
|---|---|
ParameterArchiveV2.Partition |
createAndGetPartition(long segStart)
get partition for segment, creating it if it doesn't exist
|
List<ParameterArchiveV2.Partition> |
deletePartitions(long start,
long stop)
Delete all partitions that overlap with [start, stop) segment.
|
protected void |
doStart() |
protected void |
doStop() |
org.rocksdb.RocksIterator |
getIterator(ParameterArchiveV2.Partition p) |
ParameterGroupIdDb |
getParameterGroupIdDb() |
ParameterIdDb |
getParameterIdDb() |
TimePartitionSchema |
getPartitioningSchema() |
List<ParameterArchiveV2.Partition> |
getPartitions(long start,
long stop,
boolean ascending)
a copy of the partitions from start to stop inclusive
|
Tablespace |
getTablespace() |
SortedTimeSegment |
getTimeSegment(ParameterArchiveV2.Partition p,
long segmentStart,
int parameterGroupId) |
String |
getYamcsInstance() |
void |
printKeys(PrintStream out) |
Future<?> |
reprocess(long start,
long stop) |
void |
writeToArchive(long segStart,
Collection<PGSegment> pgList) |
void |
writeToArchive(PGSegment pgs) |
public static final boolean STORE_RAW_VALUES
public ParameterArchiveV2(String instance, Map<String,Object> args) throws IOException, org.rocksdb.RocksDBException
IOExceptionorg.rocksdb.RocksDBExceptionpublic ParameterArchiveV2(String instance) throws org.rocksdb.RocksDBException, IOException
org.rocksdb.RocksDBExceptionIOExceptionpublic TimePartitionSchema getPartitioningSchema()
public ParameterIdDb getParameterIdDb()
public ParameterGroupIdDb getParameterGroupIdDb()
public String getYamcsInstance()
public void writeToArchive(PGSegment pgs) throws org.rocksdb.RocksDBException, IOException
org.rocksdb.RocksDBExceptionIOExceptionpublic void writeToArchive(long segStart,
Collection<PGSegment> pgList)
throws org.rocksdb.RocksDBException,
IOException
org.rocksdb.RocksDBExceptionIOExceptionpublic ParameterArchiveV2.Partition createAndGetPartition(long segStart) throws org.rocksdb.RocksDBException
segStart - org.rocksdb.RocksDBExceptionpublic Future<?> reprocess(long start, long stop)
public List<ParameterArchiveV2.Partition> getPartitions(long start, long stop, boolean ascending)
start - stop - protected void doStart()
doStart in class com.google.common.util.concurrent.AbstractServiceprotected void doStop()
doStop in class com.google.common.util.concurrent.AbstractServicepublic void printKeys(PrintStream out) throws DecodingException, org.rocksdb.RocksDBException, IOException
DecodingExceptionorg.rocksdb.RocksDBExceptionIOExceptionpublic List<ParameterArchiveV2.Partition> deletePartitions(long start, long stop) throws org.rocksdb.RocksDBException
start - stop - org.rocksdb.RocksDBExceptionpublic org.rocksdb.RocksIterator getIterator(ParameterArchiveV2.Partition p) throws org.rocksdb.RocksDBException, IOException
org.rocksdb.RocksDBExceptionIOExceptionpublic SortedTimeSegment getTimeSegment(ParameterArchiveV2.Partition p, long segmentStart, int parameterGroupId) throws org.rocksdb.RocksDBException, IOException
org.rocksdb.RocksDBExceptionIOExceptionpublic Tablespace getTablespace()
Copyright © 2018 Space Applications Services. All rights reserved.