Package org.apache.beam.runners.dataflow
Class DataflowClient
java.lang.Object
org.apache.beam.runners.dataflow.DataflowClient
Wrapper around the generated
Dataflow
client to provide common functionality.-
Method Summary
Modifier and TypeMethodDescriptionstatic DataflowClient
create
(DataflowPipelineOptions options) Creates the DataflowJob
.Gets the DataflowJob
with the givenjobId
.getJobMetrics
(String jobId) Gets theJobMetrics
with the givenjobId
.leaseWorkItem
(String jobId, LeaseWorkItemRequest request) Leases the work item forjobId
.listJobMessages
(String jobId, @Nullable String pageToken) Lists job messages with the givenjobId
.Lists DataflowJobs
in the project associated with theDataflowPipelineOptions
.reportWorkItemStatus
(String jobId, ReportWorkItemStatusRequest request) Reports the status of the work item forjobId
.Updates the DataflowJob
with the givenjobId
.
-
Method Details
-
create
-
createJob
Creates the DataflowJob
.- Throws:
IOException
-
listJobs
Lists DataflowJobs
in the project associated with theDataflowPipelineOptions
.- Throws:
IOException
-
updateJob
Updates the DataflowJob
with the givenjobId
.- Throws:
IOException
-
getJob
Gets the DataflowJob
with the givenjobId
.- Throws:
IOException
-
getJobMetrics
Gets theJobMetrics
with the givenjobId
.- Throws:
IOException
-
listJobMessages
public ListJobMessagesResponse listJobMessages(@Nonnull String jobId, @Nullable String pageToken) throws IOException Lists job messages with the givenjobId
.- Throws:
IOException
-
leaseWorkItem
public LeaseWorkItemResponse leaseWorkItem(@Nonnull String jobId, @Nonnull LeaseWorkItemRequest request) throws IOException Leases the work item forjobId
.- Throws:
IOException
-
reportWorkItemStatus
public ReportWorkItemStatusResponse reportWorkItemStatus(@Nonnull String jobId, @Nonnull ReportWorkItemStatusRequest request) throws IOException Reports the status of the work item forjobId
.- Throws:
IOException
-