java.lang.Object
org.yamcs.yarch.Stream
org.yamcs.yarch.SpeedLimitStream
- All Implemented Interfaces:
StreamSubscriber
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.yarch.Stream
Stream.ExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longmaximum time to wait if SPEED is ORIGINAL meaning that if there is a gap in the data longer than this, we continue)Fields inherited from class org.yamcs.yarch.Stream
log, name, outputDefinition, QUITTING, RUNNING, SETUP, state, subscribers, ydb -
Constructor Summary
ConstructorsConstructorDescriptionSpeedLimitStream(YarchDatabaseInstance dict, String name, TupleDefinition definition, SpeedSpec speedSpec) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeSpeed(SpeedSpec speedSpec) protected voiddoClose()voiddoStart()Start emitting tuples.voidvoidsetSpeedSpec(SpeedSpec speedSpec) voidvoidstreamClosed(Stream stream) Called when the subcribed stream is closed we close this stream also.toString()Methods inherited from class org.yamcs.yarch.Stream
addSubscriber, close, emitTuple, exceptionHandler, getColumnDefinition, getDataCount, getDefinition, getName, getState, getSubscriberCount, getSubscribers, isClosed, isRunning, quitting, removeSubscriber, setName, start
-
Field Details
-
MAX_WAIT_TIME
public static final long MAX_WAIT_TIMEmaximum time to wait if SPEED is ORIGINAL meaning that if there is a gap in the data longer than this, we continue)- See Also:
-
-
Constructor Details
-
SpeedLimitStream
public SpeedLimitStream(YarchDatabaseInstance dict, String name, TupleDefinition definition, SpeedSpec speedSpec)
-
-
Method Details
-
setSubscribedStream
-
doStart
public void doStart()Description copied from class:StreamStart emitting tuples. -
onTuple
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
Called when the subcribed stream is closed we close this stream also.- Specified by:
streamClosedin interfaceStreamSubscriber
-
setSpeedSpec
-
toString
-
doClose
protected void doClose() -
changeSpeed
-