Package org.apache.beam.runners.dataflow
Class DataflowClient
- java.lang.Object
-
- org.apache.beam.runners.dataflow.DataflowClient
-
public class DataflowClient extends java.lang.ObjectWrapper around the generatedDataflowclient to provide common functionality.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataflowClientcreate(DataflowPipelineOptions options)com.google.api.services.dataflow.model.JobcreateJob(com.google.api.services.dataflow.model.Job job)Creates the DataflowJob.com.google.api.services.dataflow.model.JobgetJob(java.lang.String jobId)Gets the DataflowJobwith the givenjobId.com.google.api.services.dataflow.model.JobMetricsgetJobMetrics(java.lang.String jobId)Gets theJobMetricswith the givenjobId.com.google.api.services.dataflow.model.LeaseWorkItemResponseleaseWorkItem(java.lang.String jobId, com.google.api.services.dataflow.model.LeaseWorkItemRequest request)Leases the work item forjobId.com.google.api.services.dataflow.model.ListJobMessagesResponselistJobMessages(java.lang.String jobId, @Nullable java.lang.String pageToken)Lists job messages with the givenjobId.com.google.api.services.dataflow.model.ListJobsResponselistJobs(@Nullable java.lang.String pageToken)Lists DataflowJobsin the project associated with theDataflowPipelineOptions.com.google.api.services.dataflow.model.ReportWorkItemStatusResponsereportWorkItemStatus(java.lang.String jobId, com.google.api.services.dataflow.model.ReportWorkItemStatusRequest request)Reports the status of the work item forjobId.com.google.api.services.dataflow.model.JobupdateJob(java.lang.String jobId, com.google.api.services.dataflow.model.Job content)Updates the DataflowJobwith the givenjobId.
-
-
-
Method Detail
-
create
public static DataflowClient create(DataflowPipelineOptions options)
-
createJob
public com.google.api.services.dataflow.model.Job createJob(@Nonnull com.google.api.services.dataflow.model.Job job) throws java.io.IOExceptionCreates the DataflowJob.- Throws:
java.io.IOException
-
listJobs
public com.google.api.services.dataflow.model.ListJobsResponse listJobs(@Nullable java.lang.String pageToken) throws java.io.IOExceptionLists DataflowJobsin the project associated with theDataflowPipelineOptions.- Throws:
java.io.IOException
-
updateJob
public com.google.api.services.dataflow.model.Job updateJob(@Nonnull java.lang.String jobId, @Nonnull com.google.api.services.dataflow.model.Job content) throws java.io.IOExceptionUpdates the DataflowJobwith the givenjobId.- Throws:
java.io.IOException
-
getJob
public com.google.api.services.dataflow.model.Job getJob(@Nonnull java.lang.String jobId) throws java.io.IOExceptionGets the DataflowJobwith the givenjobId.- Throws:
java.io.IOException
-
getJobMetrics
public com.google.api.services.dataflow.model.JobMetrics getJobMetrics(@Nonnull java.lang.String jobId) throws java.io.IOExceptionGets theJobMetricswith the givenjobId.- Throws:
java.io.IOException
-
listJobMessages
public com.google.api.services.dataflow.model.ListJobMessagesResponse listJobMessages(@Nonnull java.lang.String jobId, @Nullable java.lang.String pageToken) throws java.io.IOExceptionLists job messages with the givenjobId.- Throws:
java.io.IOException
-
leaseWorkItem
public com.google.api.services.dataflow.model.LeaseWorkItemResponse leaseWorkItem(@Nonnull java.lang.String jobId, @Nonnull com.google.api.services.dataflow.model.LeaseWorkItemRequest request) throws java.io.IOExceptionLeases the work item forjobId.- Throws:
java.io.IOException
-
reportWorkItemStatus
public com.google.api.services.dataflow.model.ReportWorkItemStatusResponse reportWorkItemStatus(@Nonnull java.lang.String jobId, @Nonnull com.google.api.services.dataflow.model.ReportWorkItemStatusRequest request) throws java.io.IOExceptionReports the status of the work item forjobId.- Throws:
java.io.IOException
-
-