Package org.yamcs.yarch
Class SpeedLimitStream
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
Modifier and TypeFieldDescriptionstatic final long
maximum 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
ConstructorDescriptionSpeedLimitStream
(YarchDatabaseInstance dict, String name, TupleDefinition definition, SpeedSpec speedSpec) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeSpeed
(SpeedSpec speedSpec) protected void
doClose()
void
doStart()
Start emitting tuples.void
void
setSpeedSpec
(SpeedSpec speedSpec) void
void
streamClosed
(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:Stream
Start emitting tuples. -
onTuple
- Specified by:
onTuple
in interfaceStreamSubscriber
-
streamClosed
Called when the subcribed stream is closed we close this stream also.- Specified by:
streamClosed
in interfaceStreamSubscriber
-
setSpeedSpec
-
toString
-
doClose
protected void doClose() -
changeSpeed
-