java.lang.Object
org.yamcs.parameterarchive.PGSegment
org.yamcs.parameterarchive.SynchronizedPGSegment
This is a superclass of
PGSegment that provides synchronized access between get and add operations.
It is used by the Realtime Parameter filler in order to avoid concurrency issues when reading and writing to the same segment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecord(long instant, IntArray pids, List<BasicParameterValue> values) Add a new recordprotected ParameterValueSegmentnewPvs(int pid, SortedTimeSegment timeSegment, org.yamcs.protobuf.Yamcs.Value.Type engValueType, org.yamcs.protobuf.Yamcs.Value.Type rawValueType) Methods inherited from class org.yamcs.parameterarchive.PGSegment
addRecord, consolidate, continueSegment, freeze, getInterval, getParameterGroupId, getParameterId, getParametersValues, getParameterValue, getSegmentEnd, getSegmentIdxInsideInterval, getSegmentStart, getTimeSegment, isFirstInInterval, isFrozen, makeWritable, numParameters, size, toString, wasPreviousGap
-
Constructor Details
-
SynchronizedPGSegment
public SynchronizedPGSegment(int parameterGroupId, long interval, int size)
-
-
Method Details
-
addRecord
Description copied from class:PGSegmentAdd a new recordinstant goes into the timeSegment the values goes each into a value segment
-
newPvs
protected ParameterValueSegment newPvs(int pid, SortedTimeSegment timeSegment, org.yamcs.protobuf.Yamcs.Value.Type engValueType, org.yamcs.protobuf.Yamcs.Value.Type rawValueType)
-