target.apidocs.com.google.api.services.dataflow.Dataflow.Projects.Jobs.WorkItems.html Maven / Gradle / Ivy
Dataflow.Projects.Jobs.WorkItems (Dataflow API v1b3-rev20231112-2.0.0)
com.google.api.services.dataflow
Class Dataflow.Projects.Jobs.WorkItems
- java.lang.Object
-
- com.google.api.services.dataflow.Dataflow.Projects.Jobs.WorkItems
-
- Enclosing class:
- Dataflow.Projects.Jobs
public class Dataflow.Projects.Jobs.WorkItems
extends Object
The "workItems" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Dataflow.Projects.Jobs.WorkItems.Lease
class
Dataflow.Projects.Jobs.WorkItems.ReportStatus
-
Constructor Summary
Constructors
Constructor and Description
WorkItems()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Dataflow.Projects.Jobs.WorkItems.Lease
lease(String projectId,
String jobId,
LeaseWorkItemRequest content)
Leases a dataflow WorkItem to run.
Dataflow.Projects.Jobs.WorkItems.ReportStatus
reportStatus(String projectId,
String jobId,
ReportWorkItemStatusRequest content)
Reports the status of dataflow WorkItems leased by a worker.
-
-
Method Detail
-
lease
public Dataflow.Projects.Jobs.WorkItems.Lease lease(String projectId,
String jobId,
LeaseWorkItemRequest content)
throws IOException
Leases a dataflow WorkItem to run.
Create a request for the method "workItems.lease".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Identifies the project this worker belongs to.
jobId
- Identifies the workflow job this worker belongs to.
content
- the LeaseWorkItemRequest
- Returns:
- the request
- Throws:
IOException
-
reportStatus
public Dataflow.Projects.Jobs.WorkItems.ReportStatus reportStatus(String projectId,
String jobId,
ReportWorkItemStatusRequest content)
throws IOException
Reports the status of dataflow WorkItems leased by a worker.
Create a request for the method "workItems.reportStatus".
This request holds the parameters needed by the dataflow server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- The project which owns the WorkItem's job.
jobId
- The job which the WorkItem is part of.
content
- the ReportWorkItemStatusRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2023 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy