public static class DirectRunner.DirectPipelineResult extends Object implements PipelineResult
Pipeline with the DirectRunner.
Throws UnsupportedOperationException for all methods.
PipelineResult.State| Modifier and Type | Method and Description |
|---|---|
PipelineResult.State |
cancel() |
<T> AggregatorValues<T> |
getAggregatorValues(Aggregator<?,T> aggregator) |
PipelineResult.State |
getState() |
MetricResults |
metrics() |
PipelineResult.State |
waitUntilFinish()
Blocks until the
Pipeline execution represented by this
DirectRunner.DirectPipelineResult is complete, returning the terminal state. |
PipelineResult.State |
waitUntilFinish(org.joda.time.Duration duration) |
public PipelineResult.State getState()
getState in interface PipelineResultpublic <T> AggregatorValues<T> getAggregatorValues(Aggregator<?,T> aggregator) throws AggregatorRetrievalException
getAggregatorValues in interface PipelineResultAggregatorRetrievalExceptionpublic MetricResults metrics()
metrics in interface PipelineResultpublic PipelineResult.State waitUntilFinish()
Pipeline execution represented by this
DirectRunner.DirectPipelineResult 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
DirectOptions.isShutdownUnboundedProducersWithMaxWatermark() set to false,
this method will never return.
See also PipelineExecutor.awaitCompletion().
waitUntilFinish in interface PipelineResultpublic PipelineResult.State cancel() throws IOException
cancel in interface PipelineResultIOExceptionpublic PipelineResult.State waitUntilFinish(org.joda.time.Duration duration)
waitUntilFinish in interface PipelineResultCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.