public class DataflowTemplateJob extends DataflowPipelineJob
DataflowPipelineJob
that is returned when --templateRunner
is set.PipelineResult.State
STATUS_BACKOFF_FACTORY
Constructor and Description |
---|
DataflowTemplateJob() |
Modifier and Type | Method and Description |
---|---|
PipelineResult.State |
cancel()
Cancels the pipeline execution.
|
java.lang.String |
getJobId()
Get the id of this job.
|
java.lang.String |
getProjectId()
Get the project this job exists in.
|
DataflowPipelineJob |
getReplacedByJob()
Returns a new
DataflowPipelineJob for the job that replaced this one, if applicable. |
PipelineResult.State |
getState()
Retrieves the current state of the pipeline execution.
|
MetricResults |
metrics()
Returns the object to access metrics from the pipeline.
|
getDataflowOptions, getPipelineProto, getRegion, getTransformStepNames, waitUntilFinish, waitUntilFinish, waitUntilFinish
public java.lang.String getJobId()
DataflowPipelineJob
getJobId
in class DataflowPipelineJob
public java.lang.String getProjectId()
DataflowPipelineJob
getProjectId
in class DataflowPipelineJob
public DataflowPipelineJob getReplacedByJob()
DataflowPipelineJob
DataflowPipelineJob
for the job that replaced this one, if applicable.getReplacedByJob
in class DataflowPipelineJob
public MetricResults metrics()
PipelineResult
metrics
in interface PipelineResult
metrics
in class DataflowPipelineJob
public PipelineResult.State cancel()
PipelineResult
cancel
in interface PipelineResult
cancel
in class DataflowPipelineJob
public PipelineResult.State getState()
PipelineResult
getState
in interface PipelineResult
getState
in class DataflowPipelineJob
PipelineResult.State
representing the state of this pipeline.