Class DataflowTemplateJob
java.lang.Object
org.apache.beam.runners.dataflow.DataflowPipelineJob
org.apache.beam.runners.dataflow.util.DataflowTemplateJob
- All Implemented Interfaces:
PipelineResult
A
DataflowPipelineJob
that is returned when --templateRunner
is set.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.beam.sdk.PipelineResult
PipelineResult.State
-
Field Summary
Fields inherited from class org.apache.beam.runners.dataflow.DataflowPipelineJob
STATUS_BACKOFF_FACTORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancel()
Cancels the pipeline execution.getJobId()
Get the id of this job.Get the project this job exists in.Returns a newDataflowPipelineJob
for the job that replaced this one, if applicable.getState()
Retrieves the current state of the pipeline execution.metrics()
Returns the object to access metrics from the pipeline.Methods inherited from class org.apache.beam.runners.dataflow.DataflowPipelineJob
getDataflowOptions, getPipelineProto, getRegion, getTransformStepNames, waitUntilFinish, waitUntilFinish, waitUntilFinish
-
Constructor Details
-
DataflowTemplateJob
public DataflowTemplateJob()
-
-
Method Details
-
getJobId
Description copied from class:DataflowPipelineJob
Get the id of this job.- Overrides:
getJobId
in classDataflowPipelineJob
-
getProjectId
Description copied from class:DataflowPipelineJob
Get the project this job exists in.- Overrides:
getProjectId
in classDataflowPipelineJob
-
getReplacedByJob
Description copied from class:DataflowPipelineJob
Returns a newDataflowPipelineJob
for the job that replaced this one, if applicable.- Overrides:
getReplacedByJob
in classDataflowPipelineJob
-
metrics
Description copied from interface:PipelineResult
Returns the object to access metrics from the pipeline.- Specified by:
metrics
in interfacePipelineResult
- Overrides:
metrics
in classDataflowPipelineJob
-
cancel
Description copied from interface:PipelineResult
Cancels the pipeline execution.- Specified by:
cancel
in interfacePipelineResult
- Overrides:
cancel
in classDataflowPipelineJob
-
getState
Description copied from interface:PipelineResult
Retrieves the current state of the pipeline execution.- Specified by:
getState
in interfacePipelineResult
- Overrides:
getState
in classDataflowPipelineJob
- Returns:
- the
PipelineResult.State
representing the state of this pipeline.
-