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