public class GearpumpPipelineResult extends java.lang.Object implements PipelineResult
Pipeline
with Gearpump.PipelineResult.State
Constructor and Description |
---|
GearpumpPipelineResult(io.gearpump.cluster.client.ClientContext client,
io.gearpump.cluster.client.RunningApplication app) |
Modifier and Type | Method and Description |
---|---|
PipelineResult.State |
cancel()
Cancels the pipeline execution.
|
io.gearpump.cluster.client.ClientContext |
getClientContext() |
PipelineResult.State |
getState()
Retrieves the current state of the pipeline execution.
|
MetricResults |
metrics()
Returns the object to access metrics from the pipeline.
|
PipelineResult.State |
waitUntilFinish()
Waits until the pipeline finishes and returns the final status.
|
PipelineResult.State |
waitUntilFinish(Duration duration)
Waits until the pipeline finishes and returns the final status.
|
public GearpumpPipelineResult(io.gearpump.cluster.client.ClientContext client, io.gearpump.cluster.client.RunningApplication app)
public PipelineResult.State getState()
PipelineResult
getState
in interface PipelineResult
PipelineResult.State
representing the state of this pipeline.public PipelineResult.State cancel() throws java.io.IOException
PipelineResult
cancel
in interface PipelineResult
java.io.IOException
- if there is a problem executing the cancel request.public PipelineResult.State waitUntilFinish(Duration duration)
PipelineResult
waitUntilFinish
in interface PipelineResult
duration
- The time to wait for the pipeline to finish. Provide a value less than 1 ms for
an infinite wait.public PipelineResult.State waitUntilFinish()
PipelineResult
waitUntilFinish
in interface PipelineResult
public MetricResults metrics()
PipelineResult
metrics
in interface PipelineResult
public io.gearpump.cluster.client.ClientContext getClientContext()