public class DataflowClient
extends java.lang.Object
Dataflow client to provide common functionality.| Modifier and Type | Method and Description | 
|---|---|
| static DataflowClient | create(DataflowPipelineOptions options) | 
| Job | createJob(Job job)Creates the Dataflow  Job. | 
| Job | getJob(java.lang.String jobId)Gets the Dataflow  Jobwith the givenjobId. | 
| JobMetrics | getJobMetrics(java.lang.String jobId)Gets the  JobMetricswith the givenjobId. | 
| LeaseWorkItemResponse | leaseWorkItem(java.lang.String jobId,
             LeaseWorkItemRequest request)Leases the work item for  jobId. | 
| ListJobMessagesResponse | listJobMessages(java.lang.String jobId,
               @Nullable java.lang.String pageToken)Lists job messages with the given  jobId. | 
| ListJobsResponse | listJobs(@Nullable java.lang.String pageToken)Lists Dataflow  Jobsin the project associated with theDataflowPipelineOptions. | 
| ReportWorkItemStatusResponse | reportWorkItemStatus(java.lang.String jobId,
                    ReportWorkItemStatusRequest request)Reports the status of the work item for  jobId. | 
| Job | updateJob(java.lang.String jobId,
         Job content)Updates the Dataflow  Jobwith the givenjobId. | 
public static DataflowClient create(DataflowPipelineOptions options)
public Job createJob(@Nonnull Job job) throws java.io.IOException
Job.java.io.IOExceptionpublic ListJobsResponse listJobs(@Nullable java.lang.String pageToken) throws java.io.IOException
Jobs in the project associated with the DataflowPipelineOptions.java.io.IOExceptionpublic Job updateJob(@Nonnull java.lang.String jobId, @Nonnull Job content) throws java.io.IOException
Job with the given jobId.java.io.IOExceptionpublic Job getJob(@Nonnull java.lang.String jobId) throws java.io.IOException
Job with the given jobId.java.io.IOExceptionpublic JobMetrics getJobMetrics(@Nonnull java.lang.String jobId) throws java.io.IOException
JobMetrics with the given jobId.java.io.IOExceptionpublic ListJobMessagesResponse listJobMessages(@Nonnull java.lang.String jobId, @Nullable java.lang.String pageToken) throws java.io.IOException
jobId.java.io.IOExceptionpublic LeaseWorkItemResponse leaseWorkItem(@Nonnull java.lang.String jobId, @Nonnull LeaseWorkItemRequest request) throws java.io.IOException
jobId.java.io.IOExceptionpublic ReportWorkItemStatusResponse reportWorkItemStatus(@Nonnull java.lang.String jobId, @Nonnull ReportWorkItemStatusRequest request) throws java.io.IOException
jobId.java.io.IOException