public final class WorkItemStatus
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
WorkItemStatus() |
Modifier and Type | Method and Description |
---|---|
WorkItemStatus |
clone() |
java.lang.Boolean |
getCompleted()
True if the WorkItem was completed (successfully or unsuccessfully).
|
DynamicSourceSplit |
getDynamicSourceSplit()
See documentation of stop_position.
|
java.util.List<Status> |
getErrors()
Specifies errors which occurred during processing.
|
java.util.List<MetricUpdate> |
getMetricUpdates()
Worker output metrics (counters) for this WorkItem.
|
ApproximateProgress |
getProgress()
DEPRECATED in favor of reported_progress.
|
ApproximateReportedProgress |
getReportedProgress()
The worker's progress through this WorkItem.
|
java.lang.Long |
getReportIndex()
The report index.
|
java.lang.String |
getRequestedLeaseDuration()
Amount of time the worker requests for its lease.
|
SourceFork |
getSourceFork()
DEPRECATED in favor of dynamic_source_split.
|
SourceOperationResponse |
getSourceOperationResponse()
If the work item represented a SourceOperationRequest, and the work is completed, contains the
result of the operation.
|
Position |
getStopPosition()
A worker may split an active map task in two parts, "primary" and "residual", continuing to
process the primary part and returning the residual part into the pool of available work.
|
java.lang.String |
getWorkItemId()
Identifies the WorkItem.
|
WorkItemStatus |
set(java.lang.String fieldName,
java.lang.Object value) |
WorkItemStatus |
setCompleted(java.lang.Boolean completed)
True if the WorkItem was completed (successfully or unsuccessfully).
|
WorkItemStatus |
setDynamicSourceSplit(DynamicSourceSplit dynamicSourceSplit)
See documentation of stop_position.
|
WorkItemStatus |
setErrors(java.util.List<Status> errors)
Specifies errors which occurred during processing.
|
WorkItemStatus |
setMetricUpdates(java.util.List<MetricUpdate> metricUpdates)
Worker output metrics (counters) for this WorkItem.
|
WorkItemStatus |
setProgress(ApproximateProgress progress)
DEPRECATED in favor of reported_progress.
|
WorkItemStatus |
setReportedProgress(ApproximateReportedProgress reportedProgress)
The worker's progress through this WorkItem.
|
WorkItemStatus |
setReportIndex(java.lang.Long reportIndex)
The report index.
|
WorkItemStatus |
setRequestedLeaseDuration(java.lang.String requestedLeaseDuration)
Amount of time the worker requests for its lease.
|
WorkItemStatus |
setSourceFork(SourceFork sourceFork)
DEPRECATED in favor of dynamic_source_split.
|
WorkItemStatus |
setSourceOperationResponse(SourceOperationResponse sourceOperationResponse)
If the work item represented a SourceOperationRequest, and the work is completed, contains the
result of the operation.
|
WorkItemStatus |
setStopPosition(Position stopPosition)
A worker may split an active map task in two parts, "primary" and "residual", continuing to
process the primary part and returning the residual part into the pool of available work.
|
WorkItemStatus |
setWorkItemId(java.lang.String workItemId)
Identifies the WorkItem.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Boolean getCompleted()
null
for nonepublic WorkItemStatus setCompleted(java.lang.Boolean completed)
completed
- completed or null
for nonepublic DynamicSourceSplit getDynamicSourceSplit()
null
for nonepublic WorkItemStatus setDynamicSourceSplit(DynamicSourceSplit dynamicSourceSplit)
dynamicSourceSplit
- dynamicSourceSplit or null
for nonepublic java.util.List<Status> getErrors()
null
for nonepublic WorkItemStatus setErrors(java.util.List<Status> errors)
errors
- errors or null
for nonepublic java.util.List<MetricUpdate> getMetricUpdates()
null
for nonepublic WorkItemStatus setMetricUpdates(java.util.List<MetricUpdate> metricUpdates)
metricUpdates
- metricUpdates or null
for nonepublic ApproximateProgress getProgress()
null
for nonepublic WorkItemStatus setProgress(ApproximateProgress progress)
progress
- progress or null
for nonepublic java.lang.Long getReportIndex()
null
for nonepublic WorkItemStatus setReportIndex(java.lang.Long reportIndex)
reportIndex
- reportIndex or null
for nonepublic ApproximateReportedProgress getReportedProgress()
null
for nonepublic WorkItemStatus setReportedProgress(ApproximateReportedProgress reportedProgress)
reportedProgress
- reportedProgress or null
for nonepublic java.lang.String getRequestedLeaseDuration()
null
for nonepublic WorkItemStatus setRequestedLeaseDuration(java.lang.String requestedLeaseDuration)
requestedLeaseDuration
- requestedLeaseDuration or null
for nonepublic SourceFork getSourceFork()
null
for nonepublic WorkItemStatus setSourceFork(SourceFork sourceFork)
sourceFork
- sourceFork or null
for nonepublic SourceOperationResponse getSourceOperationResponse()
null
for nonepublic WorkItemStatus setSourceOperationResponse(SourceOperationResponse sourceOperationResponse)
sourceOperationResponse
- sourceOperationResponse or null
for nonepublic Position getStopPosition()
null
for nonepublic WorkItemStatus setStopPosition(Position stopPosition)
stopPosition
- stopPosition or null
for nonepublic java.lang.String getWorkItemId()
null
for nonepublic WorkItemStatus setWorkItemId(java.lang.String workItemId)
workItemId
- workItemId or null
for nonepublic WorkItemStatus set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public WorkItemStatus clone()
clone
in class com.google.api.client.json.GenericJson