public interface StreamProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
drainAndStop(Duration timeout)
Stop computations when input streams are empty.
|
Latency |
getLatency(String computationName)
Returns the latency for a computation.
|
long |
getLowWatermark()
Returns the low watermark for all the computations of the topology.
|
long |
getLowWatermark(String computationName)
Returns the low watermark for the computation.
|
StreamProcessor |
init(Topology topology,
Settings settings)
Initialize streams, but don't run the computations
|
boolean |
isDone(long timestamp)
Returns true if all messages with a lower timestamp has been processed by the topology.
|
boolean |
isTerminated()
True if there is no active processing threads.
|
void |
shutdown()
Shutdown immediately.
|
void |
start()
Run the initialized computations.
|
boolean |
stop(Duration timeout)
Try to stop computations gracefully after processing a record or a timer within the timeout duration.
|
boolean |
waitForAssignments(Duration timeout)
Wait for the computations to have assigned partitions ready to process records.
|
StreamProcessor init(Topology topology, Settings settings)
void start()
boolean stop(Duration timeout)
boolean drainAndStop(Duration timeout)
true
if computations are stopped during the timeout delay.void shutdown()
long getLowWatermark(String computationName)
long getLowWatermark()
Latency getLatency(String computationName)
boolean isDone(long timestamp)
boolean waitForAssignments(Duration timeout) throws InterruptedException
true
if all computations have assigned partitions during the timeout delay.InterruptedException
boolean isTerminated()
Copyright © 2018 Nuxeo. All rights reserved.