public class DataflowClient extends 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(String jobId)
Gets the Dataflow
Job with the given jobId. |
com.google.api.services.dataflow.model.JobMetrics |
getJobMetrics(String jobId)
Gets the
JobMetrics with the given jobId. |
com.google.api.services.dataflow.model.LeaseWorkItemResponse |
leaseWorkItem(String jobId,
com.google.api.services.dataflow.model.LeaseWorkItemRequest request)
Leases the work item for
jobId. |
com.google.api.services.dataflow.model.ListJobMessagesResponse |
listJobMessages(String jobId,
String pageToken)
Lists job messages with the given
jobId. |
com.google.api.services.dataflow.model.ListJobsResponse |
listJobs(String pageToken)
Lists Dataflow
Jobs in the project associated with
the DataflowPipelineOptions. |
com.google.api.services.dataflow.model.ReportWorkItemStatusResponse |
reportWorkItemStatus(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(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 IOException
Job.IOExceptionpublic com.google.api.services.dataflow.model.ListJobsResponse listJobs(@Nullable String pageToken) throws IOException
Jobs in the project associated with
the DataflowPipelineOptions.IOExceptionpublic com.google.api.services.dataflow.model.Job updateJob(@Nonnull String jobId, @Nonnull com.google.api.services.dataflow.model.Job content) throws IOException
Job with the given jobId.IOExceptionpublic com.google.api.services.dataflow.model.Job getJob(@Nonnull String jobId) throws IOException
Job with the given jobId.IOExceptionpublic com.google.api.services.dataflow.model.JobMetrics getJobMetrics(@Nonnull String jobId) throws IOException
JobMetrics with the given jobId.IOExceptionpublic com.google.api.services.dataflow.model.ListJobMessagesResponse listJobMessages(@Nonnull String jobId, @Nullable String pageToken) throws IOException
jobId.IOExceptionpublic com.google.api.services.dataflow.model.LeaseWorkItemResponse leaseWorkItem(@Nonnull String jobId, @Nonnull com.google.api.services.dataflow.model.LeaseWorkItemRequest request) throws IOException
jobId.IOExceptionpublic com.google.api.services.dataflow.model.ReportWorkItemStatusResponse reportWorkItemStatus(@Nonnull String jobId, @Nonnull com.google.api.services.dataflow.model.ReportWorkItemStatusRequest request) throws IOException
jobId.IOExceptionCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.