public static class InProcessPipelineRunner.InProcessPipelineResult extends Object implements PipelineResult
Pipeline with the InProcessPipelineRunner.
Throws UnsupportedOperationException for all methods.
PipelineResult.State| Modifier and Type | Method and Description |
|---|---|
PipelineResult.State |
awaitCompletion()
Blocks until the
Pipeline execution represented by this
InProcessPipelineRunner.InProcessPipelineResult is complete, returning the terminal state. |
<T> AggregatorValues<T> |
getAggregatorValues(Aggregator<?,T> aggregator)
Retrieves the current value of the provided
Aggregator. |
PipelineResult.State |
getState()
Retrieves the current state of the pipeline execution.
|
public PipelineResult.State getState()
PipelineResultgetState in interface PipelineResultPipelineResult.State representing the state of this pipeline.public <T> AggregatorValues<T> getAggregatorValues(Aggregator<?,T> aggregator) throws AggregatorRetrievalException
PipelineResultAggregator.getAggregatorValues in interface PipelineResultaggregator - the Aggregator to retrieve values for.Aggregator,
which may be empty if there are no values yet.AggregatorRetrievalException - if the Aggregator values could not be retrieved.public PipelineResult.State awaitCompletion() throws Throwable
Pipeline execution represented by this
InProcessPipelineRunner.InProcessPipelineResult is complete, returning the terminal state.
If the pipeline terminates abnormally by throwing an exception, this will rethrow the
exception. Future calls to getState() will return
PipelineResult.State.FAILED.
NOTE: if the Pipeline contains an unbounded
PCollection, and the PipelineRunner was created with
InProcessPipelineOptions.isShutdownUnboundedProducersWithMaxWatermark() set to false,
this method will never return.
See also InProcessExecutor.awaitCompletion().
Throwable