public abstract class BaseStreamsTask extends Object implements StreamsTask
Modifier and Type | Field and Description |
---|---|
protected org.apache.streams.config.StreamsConfiguration |
streamConfig |
Constructor and Description |
---|
BaseStreamsTask(org.apache.streams.config.StreamsConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
addInputQueue(BlockingQueue<StreamsDatum> inputQueue)
Add an input
Queue for this task. |
void |
addOutputQueue(BlockingQueue<StreamsDatum> outputQueue)
Add an output
Queue for this task. |
protected void |
addToOutgoingQueue(StreamsDatum datum)
Adds a StreamDatum to the outgoing queues.
|
protected StreamsDatum |
cloneStreamsDatum(StreamsDatum datum)
//TODO LOCAL MODE HACK.
|
List<BlockingQueue<StreamsDatum>> |
getInputQueues()
Returns the input queues that have been set for this task.
|
protected StreamsDatum |
getNextDatum()
Deprecated.
|
List<BlockingQueue<StreamsDatum>> |
getOutputQueues()
Returns the output queues that have been set for this task
|
long |
getStartedAt() |
String |
getStreamIdentifier() |
boolean |
isWaiting()
Returns true if the task is waiting on more data to process
|
void |
setStartedAt() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRunning, setStreamConfig, setStreamsTaskCounter, stopTask
public BaseStreamsTask(org.apache.streams.config.StreamsConfiguration config)
public void addInputQueue(BlockingQueue<StreamsDatum> inputQueue)
StreamsTask
Queue
for this task.addInputQueue
in interface StreamsTask
public void addOutputQueue(BlockingQueue<StreamsDatum> outputQueue)
StreamsTask
Queue
for this task.addOutputQueue
in interface StreamsTask
public List<BlockingQueue<StreamsDatum>> getInputQueues()
StreamsTask
getInputQueues
in interface StreamsTask
public List<BlockingQueue<StreamsDatum>> getOutputQueues()
StreamsTask
getOutputQueues
in interface StreamsTask
@Deprecated protected StreamsDatum getNextDatum()
protected void addToOutgoingQueue(StreamsDatum datum) throws InterruptedException
datum
- InterruptedException
public boolean isWaiting()
StreamsTask
isWaiting
in interface StreamsTask
protected StreamsDatum cloneStreamsDatum(StreamsDatum datum)
datum
- public long getStartedAt()
public void setStartedAt()
public String getStreamIdentifier()
Copyright © 2018 The Apache Software Foundation. All rights reserved.