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 void
doClose()
void
doStart()
Start emitting tuples.int
getPort()
void
onTuple(Stream s, Tuple t)
void
setSubscribedStream(Stream s)
void
streamClosed(Stream stream)
Called when the subcribed stream is closed we close this stream also.String
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
-
-
-
-
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:
onTuple
in interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream stream)
Called when the subcribed stream is closed we close this stream also.- Specified by:
streamClosed
in interfaceStreamSubscriber
-
doStart
public void doStart()
Description copied from class:Stream
Start emitting tuples.
-
-