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 DataflowClientcreate(DataflowPipelineOptions options) Creates the DataflowJob.Gets the DataflowJobwith the givenjobId.getJobMetrics(String jobId) Gets theJobMetricswith 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 DataflowJobsin the project associated with theDataflowPipelineOptions.reportWorkItemStatus(String jobId, ReportWorkItemStatusRequest request) Reports the status of the work item forjobId.Updates the DataflowJobwith the givenjobId.
-
Method Details
-
create
-
createJob
Creates the DataflowJob.- Throws:
IOException
-
listJobs
Lists DataflowJobsin the project associated with theDataflowPipelineOptions.- Throws:
IOException
-
updateJob
Updates the DataflowJobwith the givenjobId.- Throws:
IOException
-
getJob
Gets the DataflowJobwith the givenjobId.- Throws:
IOException
-
getJobMetrics
Gets theJobMetricswith 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
-