Package org.yamcs.yarch
Class OutputStream
- java.lang.Object
-
- org.yamcs.yarch.Stream
-
- org.yamcs.yarch.OutputStream
-
- All Implemented Interfaces:
StreamSubscriber
public class OutputStream extends Stream implements StreamSubscriber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.yamcs.yarch.Stream
Stream.ExceptionHandler
-
-
Field Summary
-
Fields inherited from class org.yamcs.yarch.Stream
log, name, outputDefinition, QUITTING, RUNNING, SETUP, state, subscribers, ydb
-
-
Constructor Summary
Constructors Constructor Description OutputStream(YarchDatabaseInstance dict, String name, TupleDefinition def)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoClose()voiddoStart()Start emitting tuples.intgetPort()voidonTuple(Stream s, Tuple t)voidsetSubscribedStream(Stream s)voidstreamClosed(Stream stream)Called when the subcribed stream is closed we close this stream also.StringtoString()-
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
-
-
-
-
Constructor Detail
-
OutputStream
public OutputStream(YarchDatabaseInstance dict, String name, TupleDefinition def) throws YarchException
- Throws:
YarchException
-
-
Method Detail
-
setSubscribedStream
public void setSubscribedStream(Stream s)
-
getPort
public int getPort()
-
onTuple
public void onTuple(Stream s, Tuple t)
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream stream)
Called when the subcribed stream is closed we close this stream also.- Specified by:
streamClosedin interfaceStreamSubscriber
-
doStart
public void doStart()
Description copied from class:StreamStart emitting tuples.
-
-