public class DaemonStream extends TupleStream implements Expressible
Constructor and Description |
---|
DaemonStream(StreamExpression expression,
StreamFactory factory) |
DaemonStream(TupleStream tupleStream,
String id,
long runInterval,
int queueSize) |
Modifier and Type | Method and Description |
---|---|
List<TupleStream> |
children() |
void |
close() |
boolean |
equals(Object o) |
String |
getId() |
Tuple |
getInfo() |
StreamComparator |
getStreamSort() |
int |
hashCode() |
void |
init(TupleStream tupleStream,
String id,
long runInterval,
int queueSize) |
void |
open() |
Tuple |
read() |
int |
remainingCapacity() |
void |
setStreamContext(StreamContext streamContext) |
void |
shutdown() |
StreamExpression |
toExpression(StreamFactory factory) |
getCost, writeStreamClose, writeStreamOpen
public DaemonStream(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public DaemonStream(TupleStream tupleStream, String id, long runInterval, int queueSize)
public StreamExpression toExpression(StreamFactory factory) throws IOException
toExpression
in interface Expressible
IOException
public int remainingCapacity()
public void init(TupleStream tupleStream, String id, long runInterval, int queueSize)
public String getId()
public void open()
open
in class TupleStream
public Tuple read() throws IOException
read
in class TupleStream
IOException
public StreamComparator getStreamSort()
getStreamSort
in class TupleStream
public void setStreamContext(StreamContext streamContext)
setStreamContext
in class TupleStream
public void shutdown()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class TupleStream
public List<TupleStream> children()
children
in class TupleStream
public Tuple getInfo()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.