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
Job with the given jobId . |
JobMetrics |
getJobMetrics(java.lang.String jobId)
Gets the
JobMetrics with the given jobId . |
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
Jobs in the project associated with the DataflowPipelineOptions . |
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
Job with the given jobId . |
public static DataflowClient create(DataflowPipelineOptions options)
public Job createJob(@Nonnull Job job) throws java.io.IOException
Job
.java.io.IOException
public ListJobsResponse listJobs(@Nullable java.lang.String pageToken) throws java.io.IOException
Jobs
in the project associated with the DataflowPipelineOptions
.java.io.IOException
public Job updateJob(@Nonnull java.lang.String jobId, @Nonnull Job content) throws java.io.IOException
Job
with the given jobId
.java.io.IOException
public Job getJob(@Nonnull java.lang.String jobId) throws java.io.IOException
Job
with the given jobId
.java.io.IOException
public JobMetrics getJobMetrics(@Nonnull java.lang.String jobId) throws java.io.IOException
JobMetrics
with the given jobId
.java.io.IOException
public ListJobMessagesResponse listJobMessages(@Nonnull java.lang.String jobId, @Nullable java.lang.String pageToken) throws java.io.IOException
jobId
.java.io.IOException
public LeaseWorkItemResponse leaseWorkItem(@Nonnull java.lang.String jobId, @Nonnull LeaseWorkItemRequest request) throws java.io.IOException
jobId
.java.io.IOException
public ReportWorkItemStatusResponse reportWorkItemStatus(@Nonnull java.lang.String jobId, @Nonnull ReportWorkItemStatusRequest request) throws java.io.IOException
jobId
.java.io.IOException